VirtualBox

Changeset 87810 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 19, 2021 4:08:22 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142871
Message:

HDA: Got rid of the stream period's additional locking; not needed, as it's part of the stream's own lock already. ticketoem2ref:36

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

Legend:

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

    r87809 r87810  
    5252    Assert(!(pPeriod->fStatus & HDASTREAMPERIOD_F_VALID));
    5353
    54 # ifdef HDA_STREAM_PERIOD_WITH_LOCKING
    55     int rc = RTCritSectInit(&pPeriod->CritSect);
    56     AssertRCReturnStmt(rc, pPeriod->fStatus = 0, rc);
    57 # endif
    5854    pPeriod->fStatus = HDASTREAMPERIOD_F_VALID;
    5955
     
    6965{
    7066    if (pPeriod->fStatus & HDASTREAMPERIOD_F_VALID)
    71     {
    72 # ifdef HDA_STREAM_PERIOD_WITH_LOCKING
    73         RTCritSectDelete(&pPeriod->CritSect);
    74 # endif
    7567        pPeriod->fStatus = HDASTREAMPERIOD_F_NONE;
    76     }
    7768}
    7869
  • trunk/src/VBox/Devices/Audio/HDAStreamPeriod.h

    r87809 r87810  
    5454typedef struct HDASTREAMPERIOD
    5555{
    56 #ifdef HDA_STREAM_PERIOD_WITH_LOCKING
    57     /** Critical section for serializing access.
    58      * @todo r=bird: This is not needed.  The stream lock is held the two places
    59      *       this critsect is entered. */
    60     RTCRITSECT              CritSect;
    61 #endif
    6256    /** Associated HDA stream descriptor (SD) number. */
    6357    uint8_t                 u8SD;
Note: See TracChangeset for help on using the changeset viewer.

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