Changeset 87810 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 19, 2021 4:08:22 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142871
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/HDAStreamPeriod.cpp
r87809 r87810 52 52 Assert(!(pPeriod->fStatus & HDASTREAMPERIOD_F_VALID)); 53 53 54 # ifdef HDA_STREAM_PERIOD_WITH_LOCKING55 int rc = RTCritSectInit(&pPeriod->CritSect);56 AssertRCReturnStmt(rc, pPeriod->fStatus = 0, rc);57 # endif58 54 pPeriod->fStatus = HDASTREAMPERIOD_F_VALID; 59 55 … … 69 65 { 70 66 if (pPeriod->fStatus & HDASTREAMPERIOD_F_VALID) 71 {72 # ifdef HDA_STREAM_PERIOD_WITH_LOCKING73 RTCritSectDelete(&pPeriod->CritSect);74 # endif75 67 pPeriod->fStatus = HDASTREAMPERIOD_F_NONE; 76 }77 68 } 78 69 -
trunk/src/VBox/Devices/Audio/HDAStreamPeriod.h
r87809 r87810 54 54 typedef struct HDASTREAMPERIOD 55 55 { 56 #ifdef HDA_STREAM_PERIOD_WITH_LOCKING57 /** Critical section for serializing access.58 * @todo r=bird: This is not needed. The stream lock is held the two places59 * this critsect is entered. */60 RTCRITSECT CritSect;61 #endif62 56 /** Associated HDA stream descriptor (SD) number. */ 63 57 uint8_t u8SD;
Note:
See TracChangeset
for help on using the changeset viewer.