VirtualBox

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


Ignore:
Timestamp:
Jun 15, 2017 9:36:52 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116144
Message:

Audio/DevHDA: Fixes for synchronous handling (!VBOX_WITH_AUDIO_HDA_ASYNC_IO).

File:
1 edited

Legend:

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

    r67417 r67418  
    10231023static void          hdaStreamLock(PHDASTREAM pStream);
    10241024static void          hdaStreamUnlock(PHDASTREAM pStream);
     1025static int           hdaStreamRead(PHDASTATE pThis, PHDASTREAM pStream, uint32_t cbToRead, uint32_t *pcbRead);
     1026//static int           hdaStreamWrite(PHDASTATE pThis, PHDASTREAM pStream, uint32_t cbToWrite, uint32_t *pcbWritten);
    10251027# ifdef HDA_USE_DMA_ACCESS_HANDLER
    10261028static bool          hdaStreamRegisterDMAHandlers(PHDASTATE pThis, PHDASTREAM pStream);
     
    50495051#else
    50505052            /* Read audio data from the HDA stream and write to the backends. */
    5051             rc2 = hdaStreamRead(pThis, pStream, cbToWrite, NULL /* pcbRead */);
     5053            rc2 = hdaStreamRead(pThis, pStreamFront, cbToWrite, NULL /* pcbRead */);
    50525054            AssertRC(rc2);
    50535055#endif
     
    50555057    }
    50565058
    5057 #ifdef VBOX_WITH_AUDIO_HDA_51_SURROUND
     5059#ifndef VBOX_WITH_AUDIO_HDA_ASYNC_IO
     5060    /*
     5061     * Update all mixer sinks here (synchronously).
     5062     * For async I/O this is done in the stream's specific async I/O thread.
     5063     */
     5064    rc2 = AudioMixerSinkUpdate(pThis->SinkFront.pMixSink);
     5065    AssertRC(rc2);
     5066
     5067# ifdef VBOX_WITH_AUDIO_HDA_51_SURROUND
    50585068    rc2 = AudioMixerSinkUpdate(pThis->SinkCenterLFE.pMixSink);
    50595069    AssertRC(rc2);
     
    50685078     * out of the Front sink (depending on the mapping layout).
    50695079     */
    5070 #endif
     5080# endif /* VBOX_WITH_AUDIO_HDA_51_SURROUND */
     5081#endif /* !VBOX_WITH_AUDIO_HDA_ASYNC_IO */
    50715082}
    50725083
     
    52905301}
    52915302
     5303#if 0
    52925304/**
    52935305 * Writes audio data from a mixer sink into an HDA stream's DMA buffer.
     
    53505362    return VINF_SUCCESS;
    53515363}
     5364#endif
    53525365
    53535366/**
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