VirtualBox

Changeset 67855 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Jul 7, 2017 2:45:37 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116811
Message:

Audio/DevHDA.cpp: Docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHDA.cpp

    r67833 r67855  
    14811481
    14821482#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 */
    14831489static int hdaProcessInterrupt(PHDASTATE pThis)
    14841490#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 */
    14851499static int hdaProcessInterrupt(PHDASTATE pThis, const char *pszSource)
    14861500#endif
     
    17161730
    17171731#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 */
    17191742static int hdaCmdSync(PHDASTATE pThis, bool fLocal)
    17201743{
     
    17801803}
    17811804
     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 */
    17821812static int hdaCORBCmdProcess(PHDASTATE pThis)
    17831813{
     
    18491879}
    18501880
     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 */
    18511888static int hdaStreamCreate(PHDASTREAM pStream, PHDASTATE pThis)
    18521889{
     
    18791916}
    18801917
     1918/**
     1919 * Destroys an HDA stream.
     1920 *
     1921 * @param   pStream             HDA stream to destroy.
     1922 */
    18811923static void hdaStreamDestroy(PHDASTREAM pStream)
    18821924{
     
    19151957}
    19161958
     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 */
    19171966static int hdaStreamInit(PHDASTREAM pStream, uint8_t uSD)
    19181967{
     
    36283677}
    36293678
    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 */
    36313686DECLINLINE(void) hdaStreamTransferInc(PHDASTREAM pStream, uint32_t cbInc)
    36323687{
     
    36453700    hdaStreamUpdateLPIB(pStream, u32LPIB + cbInc);
    36463701}
    3647 
    36483702
    36493703/**
     
    36913745}
    36923746
     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 */
    36933755static DECLCALLBACK(int) hdaMixerAddStream(PHDASTATE pThis, PHDAMIXERSINK pSink, PPDMAUDIOSTREAMCFG pCfg)
    36943756{
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette