VirtualBox

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


Ignore:
Timestamp:
Jun 14, 2021 8:54:07 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145140
Message:

DevIchAc97: Don't recheck sink active status in ichac97R3StreamUpdateDma, caller already does that. bugref:9890

File:
1 edited

Legend:

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

    r89691 r89692  
    13201320 */
    13211321static void ichac97R3StreamUpdateDma(PPDMDEVINS pDevIns, PAC97STATE pThis, PAC97STATER3 pThisCC,
    1322                                      PAC97STREAM pStream, PAC97STREAMR3 pStreamCC)
    1323 {
    1324     /*
    1325      * Make sure we're running and got an active mixer sink.
    1326      */
    1327     PAUDMIXSINK pSink = ichac97R3IndexToSink(pThisCC, pStream->u8SD); /** @todo caller will need + check this too afterwards... */
    1328     AssertPtr(pSink);
    1329     if (RT_LIKELY(AudioMixerSinkIsActive(pSink)))
    1330     { /* likely */ }
    1331     else
    1332         return;
    1333 
     1322                                     PAC97STREAM pStream, PAC97STREAMR3 pStreamCC, PAUDMIXSINK pSink)
     1323{
     1324    RT_NOREF(pThisCC);
    13341325    int rc2;
    13351326
     
    25512542    if (pSink && AudioMixerSinkIsActive(pSink))
    25522543    {
    2553         ichac97R3StreamUpdateDma(pDevIns, pThis, pThisCC, pStream, pStreamCC);
     2544        ichac97R3StreamUpdateDma(pDevIns, pThis, pThisCC, pStream, pStreamCC, pSink);
    25542545
    25552546        ichac97R3StreamTransferUpdate(pDevIns, pStream, pStreamCC);
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