Changeset 76057 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Dec 7, 2018 1:30:19 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r76047 r76057 3505 3505 { 3506 3506 RT_NOREF(pDevIns); 3507 #if defined( VBOX_STRICT) || defined(LOG_ENABLED)3507 #if defined(LOG_ENABLED) 3508 3508 PHDASTATE pThis = PDMINS_2_DATA(pDevIns, PHDASTATE); 3509 3509 #endif … … 3519 3519 AssertRCReturn(rc, rc); 3520 3520 3521 #ifdef VBOX_STRICT3522 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 #endif3531 3532 3521 rc = SSMR3PutStructEx(pSSM, &pStream->State.BDLE.Desc, sizeof(HDABDLEDESC), 3533 3522 0 /*fFlags*/, g_aSSMBDLEDescFields7, NULL); … … 3541 3530 0 /* fFlags */, g_aSSMStreamPeriodFields7, NULL); 3542 3531 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 else3559 {3560 Assert(pBDLE->Desc.u64BufAddr == 0);3561 Assert(pBDLE->Desc.u32BufSize == 0);3562 }3563 #endif3564 3532 3565 3533 uint32_t cbCircBufSize = 0;
Note:
See TracChangeset
for help on using the changeset viewer.