- Timestamp:
- Mar 18, 2021 2:24:00 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143352
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r88193 r88194 1402 1402 hdaR3StreamEnable(pStreamShared, pStreamR3, false /* fEnable */); 1403 1403 ASMAtomicWriteBool(&pStreamShared->State.fRunning, false); 1404 if (pThisCC->cStreamsActive > 0)1405 pThisCC->cStreamsActive++;1406 1404 } 1407 1405 … … 1485 1483 if (fRun) 1486 1484 { 1487 /* Keep track of running streams. */1488 pThisCC->cStreamsActive++;1489 1490 1485 /** @todo move this into a HDAStream.cpp function. */ 1491 1486 uint64_t tsNow; … … 1517 1512 } 1518 1513 else 1519 {1520 /* Keep track of running streams. */1521 Assert(pThisCC->cStreamsActive);1522 if (pThisCC->cStreamsActive)1523 pThisCC->cStreamsActive--;1524 1525 1514 hdaR3StreamMarkStopped(pStreamShared); 1526 }1527 1515 } 1528 1516 … … 2870 2858 LogFlowFuncEnter(); 2871 2859 2872 pThisCC->cStreamsActive = 0;2873 2874 2860 HDA_REG(pThis, GCAP) = HDA_MAKE_GCAP(HDA_MAX_SDO, HDA_MAX_SDI, 0, 0, 1); /* see 6.2.1 */ 2875 2861 HDA_REG(pThis, VMIN) = 0x00; /* see 6.2.2 */ … … 3652 3638 3653 3639 hdaR3StreamMarkStarted(pDevIns, pThis, pStreamShared, tsNow); 3654 3655 /* Also keep track of the currently active streams. */3656 pThisCC->cStreamsActive++;3657 3640 } 3658 3641 } -
trunk/src/VBox/Devices/Audio/DevHDA.h
r88193 r88194 231 231 /** Mapping table between stream tags and stream states. */ 232 232 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];237 233 /** R3 Pointer to the device instance. */ 238 234 PPDMDEVINSR3 pDevIns;
Note:
See TracChangeset
for help on using the changeset viewer.