Changeset 67418 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jun 15, 2017 9:36:52 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116144
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r67417 r67418 1023 1023 static void hdaStreamLock(PHDASTREAM pStream); 1024 1024 static void hdaStreamUnlock(PHDASTREAM pStream); 1025 static 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); 1025 1027 # ifdef HDA_USE_DMA_ACCESS_HANDLER 1026 1028 static bool hdaStreamRegisterDMAHandlers(PHDASTATE pThis, PHDASTREAM pStream); … … 5049 5051 #else 5050 5052 /* 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 */); 5052 5054 AssertRC(rc2); 5053 5055 #endif … … 5055 5057 } 5056 5058 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 5058 5068 rc2 = AudioMixerSinkUpdate(pThis->SinkCenterLFE.pMixSink); 5059 5069 AssertRC(rc2); … … 5068 5078 * out of the Front sink (depending on the mapping layout). 5069 5079 */ 5070 #endif 5080 # endif /* VBOX_WITH_AUDIO_HDA_51_SURROUND */ 5081 #endif /* !VBOX_WITH_AUDIO_HDA_ASYNC_IO */ 5071 5082 } 5072 5083 … … 5290 5301 } 5291 5302 5303 #if 0 5292 5304 /** 5293 5305 * Writes audio data from a mixer sink into an HDA stream's DMA buffer. … … 5350 5362 return VINF_SUCCESS; 5351 5363 } 5364 #endif 5352 5365 5353 5366 /**
Note:
See TracChangeset
for help on using the changeset viewer.