Changeset 82420 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 5, 2019 1:51:16 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135257
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/HDAStream.cpp
r82418 r82420 48 48 int hdaR3StreamCreate(PHDASTREAM pStream, PHDASTATE pThis, uint8_t u8SD) 49 49 { 50 int rc; 50 51 RT_NOREF(pThis); 51 52 AssertPtrReturn(pStream, VERR_INVALID_POINTER); … … 62 63 #endif 63 64 64 int rc = RTCritSectInit(&pStream->CritSect); 65 # ifdef VBOX_WITH_AUDIO_HDA_ASYNC_IO 66 rc = RTCritSectInit(&pStream->CritSect); 65 67 AssertRCReturn(rc, rc); 68 # endif 66 69 67 70 rc = hdaR3StreamPeriodCreate(&pStream->State.Period); … … 146 149 #endif 147 150 151 # ifdef VBOX_WITH_AUDIO_HDA_ASYNC_IO 148 152 if (RTCritSectIsInitialized(&pStream->CritSect)) 149 153 { … … 151 155 AssertRC(rc2); 152 156 } 157 # endif 153 158 154 159 if (pStream->State.pCircBuf) … … 1589 1594 { 1590 1595 AssertPtrReturnVoid(pStream); 1596 # ifdef VBOX_WITH_AUDIO_HDA_ASYNC_IO 1591 1597 int rc2 = RTCritSectEnter(&pStream->CritSect); 1592 1598 AssertRC(rc2); 1599 # else 1600 Assert(PDMDevHlpCritSectIsOwner(pStream->pHDAState->pDevInsR3, pStream->pHDAState->CritSect)); 1601 # endif 1593 1602 } 1594 1603 … … 1602 1611 { 1603 1612 AssertPtrReturnVoid(pStream); 1613 # ifdef VBOX_WITH_AUDIO_HDA_ASYNC_IO 1604 1614 int rc2 = RTCritSectLeave(&pStream->CritSect); 1605 1615 AssertRC(rc2); 1616 # endif 1606 1617 } 1607 1618 -
trunk/src/VBox/Devices/Audio/HDAStream.h
r82417 r82420 238 238 /** The timer for pumping data thru the attached LUN drivers. */ 239 239 TMTIMERHANDLE hTimer; 240 /** The stream'S critical section to serialize access. */ 240 #ifdef VBOX_WITH_AUDIO_HDA_ASYNC_IO 241 /** The stream's critical section to serialize access between the async I/O 242 * thread and (basically) the guest. */ 241 243 RTCRITSECT CritSect; 244 #endif 242 245 /** Internal state of this stream. */ 243 246 HDASTREAMSTATE State;
Note:
See TracChangeset
for help on using the changeset viewer.