Changeset 90331 in vbox
- Timestamp:
- Jul 26, 2021 12:53:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHda.cpp
r90158 r90331 1605 1605 1606 1606 STAM_REL_PROFILE_START_NS(&pStreamR3->State.StatReset, a); 1607 Assert(PDM CritSectIsOwner(&pThis->CritSect));1607 Assert(PDMDevHlpCritSectIsOwner(pDevIns, &pThis->CritSect)); 1608 1608 PAUDMIXSINK const pMixSink = pStreamR3->pMixSink ? pStreamR3->pMixSink->pMixSink : NULL; 1609 1609 if (pMixSink) … … 1635 1635 LogFunc(("[SD%RU8] State changed (fRun=%RTbool)\n", uSD, fRun)); 1636 1636 1637 Assert(PDM CritSectIsOwner(&pThis->CritSect));1637 Assert(PDMDevHlpCritSectIsOwner(pDevIns, &pThis->CritSect)); 1638 1638 /** @todo bird: It's not clear to me when the pMixSink is actually 1639 1639 * assigned to the stream, so being paranoid till I find out... */ … … 2776 2776 { 2777 2777 PHDASTATER3 pThisCC = RT_FROM_MEMBER(pCodec, HDASTATER3, Codec); 2778 PHDASTATE pThis = PDMDEVINS_2_DATA(pThisCC->pDevIns, PHDASTATE); 2778 PPDMDEVINS pDevIns = pThisCC->pDevIns; 2779 PHDASTATE pThis = PDMDEVINS_2_DATA(pDevIns, PHDASTATE); 2779 2780 LogFunc(("enmMixerCtl=%s, uSD=%RU8, uChannel=%RU8\n", PDMAudioMixerCtlGetName(enmMixerCtl), uSD, uChannel)); 2780 2781 … … 2826 2827 LogFunc(("Sink '%s' was assigned to stream #%RU8 (channel %RU8) before\n", 2827 2828 pSink->pMixSink->pszName, pOldStreamShared->u8SD, pOldStreamShared->u8Channel)); 2828 Assert(PDM CritSectIsOwner(&pThis->CritSect));2829 Assert(PDMDevHlpCritSectIsOwner(pDevIns, &pThis->CritSect)); 2829 2830 2830 2831 /* Only disable the stream if the stream descriptor # has changed. */ … … 2854 2855 PHDASTREAMR3 pStreamR3 = &pThisCC->aStreams[uSD]; 2855 2856 PHDASTREAM pStreamShared = &pThis->aStreams[uSD]; 2856 Assert(PDM CritSectIsOwner(&pThis->CritSect));2857 Assert(PDMDevHlpCritSectIsOwner(pDevIns, &pThis->CritSect)); 2857 2858 2858 2859 pSink->pStreamR3 = pStreamR3; … … 2938 2939 { 2939 2940 LogFlowFuncEnter(); 2940 Assert(PDM CritSectIsOwner(&pThis->CritSect));2941 Assert(PDMDevHlpCritSectIsOwner(pDevIns, &pThis->CritSect)); 2941 2942 2942 2943 /* … … 4751 4752 PHDASTATER3 pThisCC = PDMDEVINS_2_DATA_CC(pDevIns, PHDASTATER3); 4752 4753 4753 if (PDM CritSectIsInitialized(&pThis->CritSect))4754 PDM CritSectEnter(&pThis->CritSect, VERR_IGNORED);4754 if (PDMDevHlpCritSectIsInitialized(pDevIns, &pThis->CritSect)) 4755 PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_IGNORED); 4755 4756 4756 4757 PHDADRIVER pDrv; … … 4775 4776 } 4776 4777 4777 if (PDM CritSectIsInitialized(&pThis->CritSect))4778 { 4779 PDM CritSectLeave(&pThis->CritSect);4780 PDM R3CritSectDelete(&pThis->CritSect);4778 if (PDMDevHlpCritSectIsInitialized(pDevIns, &pThis->CritSect)) 4779 { 4780 PDMDevHlpCritSectLeave(pDevIns, &pThis->CritSect); 4781 PDMDevHlpCritSectDelete(pDevIns, &pThis->CritSect); 4781 4782 } 4782 4783 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.