Changeset 67855 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jul 7, 2017 2:45:37 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116811
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r67833 r67855 1481 1481 1482 1482 #ifndef DEBUG 1483 /** 1484 * Processes (de/asserts) the interrupt according to the HDA's current state. 1485 * 1486 * @returns IPRT status code. 1487 * @param pThis HDA state. 1488 */ 1483 1489 static int hdaProcessInterrupt(PHDASTATE pThis) 1484 1490 #else 1491 /** 1492 * Processes (de/asserts) the interrupt according to the HDA's current state. 1493 * Debug version. 1494 * 1495 * @returns IPRT status code. 1496 * @param pThis HDA state. 1497 * @param pszSource Caller information. 1498 */ 1485 1499 static int hdaProcessInterrupt(PHDASTATE pThis, const char *pszSource) 1486 1500 #endif … … 1716 1730 1717 1731 #ifdef IN_RING3 1718 1732 /** 1733 * Synchronizes the CORB / RIRB buffers between internal <-> device state. 1734 * 1735 * @returns IPRT status code. 1736 * @param pThis HDA state. 1737 * @param fLocal Specify true to synchronize HDA state's CORB buffer with the device state, 1738 * or false to synchronize the device state's RIRB buffer with the HDA state. 1739 * 1740 * @todo r=andy Break this up into two functions? 1741 */ 1719 1742 static int hdaCmdSync(PHDASTATE pThis, bool fLocal) 1720 1743 { … … 1780 1803 } 1781 1804 1805 /** 1806 * Processes the next CORB buffer command in the queue. 1807 * This will invoke the HDA codec verb dispatcher. 1808 * 1809 * @returns IPRT status code. 1810 * @param pThis HDA state. 1811 */ 1782 1812 static int hdaCORBCmdProcess(PHDASTATE pThis) 1783 1813 { … … 1849 1879 } 1850 1880 1881 /** 1882 * Creates an HDA stream. 1883 * 1884 * @returns IPRT status code. 1885 * @param pStream HDA stream to create. 1886 * @param pThis HDA state to assign the HDA stream to. 1887 */ 1851 1888 static int hdaStreamCreate(PHDASTREAM pStream, PHDASTATE pThis) 1852 1889 { … … 1879 1916 } 1880 1917 1918 /** 1919 * Destroys an HDA stream. 1920 * 1921 * @param pStream HDA stream to destroy. 1922 */ 1881 1923 static void hdaStreamDestroy(PHDASTREAM pStream) 1882 1924 { … … 1915 1957 } 1916 1958 1959 /** 1960 * Initializes an HDA stream. 1961 * 1962 * @returns IPRT status code. 1963 * @param pStream HDA stream to initialize. 1964 * @param uSD SD (stream descriptor) number to assign the HDA stream to. 1965 */ 1917 1966 static int hdaStreamInit(PHDASTREAM pStream, uint8_t uSD) 1918 1967 { … … 3628 3677 } 3629 3678 3630 3679 /** 3680 * Increases the amount of transferred (audio) data of an HDA stream and 3681 * reports this as needed to the guest. 3682 * 3683 * @param pStream HDA stream to increase amount for. 3684 * @param cbInc Amount (in bytes) to increase. 3685 */ 3631 3686 DECLINLINE(void) hdaStreamTransferInc(PHDASTREAM pStream, uint32_t cbInc) 3632 3687 { … … 3645 3700 hdaStreamUpdateLPIB(pStream, u32LPIB + cbInc); 3646 3701 } 3647 3648 3702 3649 3703 /** … … 3691 3745 } 3692 3746 3747 /** 3748 * Adds audio streams of all attached LUNs to a given HDA audio mixer sink. 3749 * 3750 * @returns IPRT status code. 3751 * @param pThis HDA state. 3752 * @param pSink HDA mixer sink to add audio streams to. 3753 * @param pCfg Audio stream configuration to use for the audio streams to add. 3754 */ 3693 3755 static DECLCALLBACK(int) hdaMixerAddStream(PHDASTATE pThis, PHDAMIXERSINK pSink, PPDMAUDIOSTREAMCFG pCfg) 3694 3756 {
Note:
See TracChangeset
for help on using the changeset viewer.