VirtualBox

Changeset 76057 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Dec 7, 2018 1:30:19 PM (6 years ago)
Author:
vboxsync
Message:

Audio/HDA: Removed debug assertions which are not needed anymore in hdaR3SaveStream().

File:
1 edited

Legend:

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

    r76047 r76057  
    35053505{
    35063506    RT_NOREF(pDevIns);
    3507 #if defined(VBOX_STRICT) || defined(LOG_ENABLED)
     3507#if defined(LOG_ENABLED)
    35083508    PHDASTATE pThis = PDMINS_2_DATA(pDevIns, PHDASTATE);
    35093509#endif
     
    35193519    AssertRCReturn(rc, rc);
    35203520
    3521 #ifdef VBOX_STRICT
    3522     uint64_t u64BaseDMA = RT_MAKE_U64(HDA_STREAM_REG(pThis, BDPL, pStream->u8SD),
    3523                                       HDA_STREAM_REG(pThis, BDPU, pStream->u8SD));
    3524     uint16_t u16LVI     = HDA_STREAM_REG(pThis, LVI, pStream->u8SD);
    3525     uint32_t u32CBL     = HDA_STREAM_REG(pThis, CBL, pStream->u8SD);
    3526 
    3527     Assert(u64BaseDMA == pStream->u64BDLBase);
    3528     Assert(u16LVI     == pStream->u16LVI);
    3529     Assert(u32CBL     == pStream->u32CBL);
    3530 #endif
    3531 
    35323521    rc = SSMR3PutStructEx(pSSM, &pStream->State.BDLE.Desc, sizeof(HDABDLEDESC),
    35333522                          0 /*fFlags*/, g_aSSMBDLEDescFields7, NULL);
     
    35413530                          0 /* fFlags */, g_aSSMStreamPeriodFields7, NULL);
    35423531    AssertRCReturn(rc, rc);
    3543 
    3544 #ifdef VBOX_STRICT /* Sanity checks. */
    3545     PHDABDLE pBDLE = &pStream->State.BDLE;
    3546     if (u64BaseDMA)
    3547     {
    3548         Assert(pStream->State.uCurBDLE <= u16LVI + 1);
    3549 
    3550         HDABDLE curBDLE;
    3551         rc = hdaR3BDLEFetch(pThis, &curBDLE, u64BaseDMA, pStream->State.uCurBDLE);
    3552         AssertRC(rc);
    3553 
    3554         Assert(curBDLE.Desc.u32BufSize == pBDLE->Desc.u32BufSize);
    3555         Assert(curBDLE.Desc.u64BufAddr  == pBDLE->Desc.u64BufAddr);
    3556         Assert(curBDLE.Desc.fFlags     == pBDLE->Desc.fFlags);
    3557     }
    3558     else
    3559     {
    3560         Assert(pBDLE->Desc.u64BufAddr  == 0);
    3561         Assert(pBDLE->Desc.u32BufSize == 0);
    3562     }
    3563 #endif
    35643532
    35653533    uint32_t cbCircBufSize = 0;
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