VirtualBox

Changeset 88194 in vbox for trunk


Ignore:
Timestamp:
Mar 18, 2021 2:24:00 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143352
Message:

DevHDA: Removed HDASTATER3::cStreamsActive as nobody actually uses it. bugref:9890

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r88193 r88194  
    14021402            hdaR3StreamEnable(pStreamShared, pStreamR3, false /* fEnable */);
    14031403            ASMAtomicWriteBool(&pStreamShared->State.fRunning, false);
    1404             if (pThisCC->cStreamsActive > 0)
    1405                 pThisCC->cStreamsActive++;
    14061404        }
    14071405
     
    14851483                if (fRun)
    14861484                {
    1487                     /* Keep track of running streams. */
    1488                     pThisCC->cStreamsActive++;
    1489 
    14901485                    /** @todo move this into a HDAStream.cpp function. */
    14911486                    uint64_t tsNow;
     
    15171512                }
    15181513                else
    1519                 {
    1520                     /* Keep track of running streams. */
    1521                     Assert(pThisCC->cStreamsActive);
    1522                     if (pThisCC->cStreamsActive)
    1523                         pThisCC->cStreamsActive--;
    1524 
    15251514                    hdaR3StreamMarkStopped(pStreamShared);
    1526                 }
    15271515            }
    15281516
     
    28702858    LogFlowFuncEnter();
    28712859
    2872     pThisCC->cStreamsActive = 0;
    2873 
    28742860    HDA_REG(pThis, GCAP)     = HDA_MAKE_GCAP(HDA_MAX_SDO, HDA_MAX_SDI, 0, 0, 1); /* see 6.2.1 */
    28752861    HDA_REG(pThis, VMIN)     = 0x00;                                             /* see 6.2.2 */
     
    36523638
    36533639            hdaR3StreamMarkStarted(pDevIns, pThis, pStreamShared, tsNow);
    3654 
    3655             /* Also keep track of the currently active streams. */
    3656             pThisCC->cStreamsActive++;
    36573640        }
    36583641    }
  • trunk/src/VBox/Devices/Audio/DevHDA.h

    r88193 r88194  
    231231    /** Mapping table between stream tags and stream states. */
    232232    HDATAG                  aTags[HDA_MAX_TAGS];
    233     /** Number of active (running) SDn streams.
    234      * @todo pointless, not used for anything at all.  */
    235     uint8_t                 cStreamsActive;
    236     uint8_t                 abPadding0[7];
    237233    /** R3 Pointer to the device instance. */
    238234    PPDMDEVINSR3            pDevIns;
Note: See TracChangeset for help on using the changeset viewer.

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