VirtualBox

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


Ignore:
Timestamp:
Jul 4, 2021 9:10:00 PM (3 years ago)
Author:
vboxsync
Message:

DevHda: Removed a bunch of unused debug stream stuff. bugref:9890

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

Legend:

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

    r90012 r90013  
    8686    AssertPtr(pStreamR3->pHDAStateR3->pDevIns);
    8787
    88 # ifdef DEBUG
    89     int rc = RTCritSectInit(&pStreamR3->Dbg.CritSect);
    90     AssertRCReturn(rc, rc);
    91 # endif
    92 
    9388    const bool fIsInput = hdaGetDirFromSD(uSD) == PDMAUDIODIR_IN;
    9489
     
    158153        pStreamR3->State.StatDmaBufUsed = 0;
    159154    }
    160 
    161 # ifdef DEBUG
    162     if (RTCritSectIsInitialized(&pStreamR3->Dbg.CritSect))
    163     {
    164         rc2 = RTCritSectDelete(&pStreamR3->Dbg.CritSect);
    165         AssertRC(rc2);
    166     }
    167 # endif
    168155
    169156    if (pStreamR3->Dbg.Runtime.fEnabled)
     
    1011998    pStreamShared->State.offWrite = 0;
    1012999    pStreamShared->State.offRead  = 0;
    1013 
    1014 # ifdef DEBUG
    1015     pStreamR3->Dbg.cReadsTotal      = 0;
    1016     pStreamR3->Dbg.cbReadTotal      = 0;
    1017     pStreamR3->Dbg.tsLastReadNs     = 0;
    1018     pStreamR3->Dbg.cWritesTotal     = 0;
    1019     pStreamR3->Dbg.cbWrittenTotal   = 0;
    1020     pStreamR3->Dbg.cWritesHz        = 0;
    1021     pStreamR3->Dbg.cbWrittenHz      = 0;
    1022     pStreamR3->Dbg.tsWriteSlotBegin = 0;
    1023 # endif
    10241000
    10251001    /* Report that we're done resetting this stream. */
  • trunk/src/VBox/Devices/Audio/DevHdaStream.h

    r89887 r90013  
    5454    /** Runtime debug info. */
    5555    HDASTREAMDEBUGRT        Runtime;
    56 #ifdef DEBUG
    57     /** Critical section to serialize access if needed. */
    58     RTCRITSECT              CritSect;
    59     uint32_t                Padding0[2];
    60     /** Number of total read accesses. */
    61     uint64_t                cReadsTotal;
    62     /** Number of total DMA bytes read. */
    63     uint64_t                cbReadTotal;
    64     /** Timestamp (in ns) of last read access. */
    65     uint64_t                tsLastReadNs;
    66     /** Number of total write accesses. */
    67     uint64_t                cWritesTotal;
    68     /** Number of total DMA bytes written. */
    69     uint64_t                cbWrittenTotal;
    70     /** Number of total write accesses since last iteration (Hz). */
    71     uint64_t                cWritesHz;
    72     /** Number of total DMA bytes written since last iteration (Hz). */
    73     uint64_t                cbWrittenHz;
    74     /** Timestamp (in ns) of beginning a new write slot. */
    75     uint64_t                tsWriteSlotBegin;
    76     /** Number of current silence samples in a (consecutive) row. */
    77     uint64_t                csSilence;
    78     /** Number of silent samples in a row to consider an audio block as audio gap (silence). */
    79     uint64_t                cSilenceThreshold;
    80     /** How many bytes to skip in an audio stream before detecting silence.
    81      *  (useful for intros and silence at the beginning of a song). */
    82     uint64_t                cbSilenceReadMin;
    83 #else
    8456    uint64_t                au64Alignment[2];
    85 #endif
    8657} HDASTREAMDEBUG;
    8758
Note: See TracChangeset for help on using the changeset viewer.

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