Changeset 82303 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Nov 30, 2019 6:24:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r82302 r82303 3914 3914 uint32_t cRegs; 3915 3915 rc = pHlp->pfnSSMGetU32(pSSM, &cRegs); AssertRCReturn(rc, rc); 3916 AssertRCReturn(rc, rc); 3916 3917 if (cRegs != RT_ELEMENTS(pThis->au32Regs)) 3917 3918 LogRel(("HDA: SSM version cRegs is %RU32, expected %RU32\n", cRegs, RT_ELEMENTS(pThis->au32Regs))); … … 3920 3921 { 3921 3922 pHlp->pfnSSMGetMem(pSSM, pThis->au32Regs, sizeof(pThis->au32Regs)); 3922 pHlp->pfnSSMSkip(pSSM, sizeof(uint32_t) * (cRegs - RT_ELEMENTS(pThis->au32Regs))); 3923 rc = pHlp->pfnSSMSkip(pSSM, sizeof(uint32_t) * (cRegs - RT_ELEMENTS(pThis->au32Regs))); 3924 AssertRCReturn(rc, rc); 3923 3925 } 3924 3926 else 3925 pHlp->pfnSSMGetMem(pSSM, pThis->au32Regs, sizeof(uint32_t) * cRegs); 3927 { 3928 rc = pHlp->pfnSSMGetMem(pSSM, pThis->au32Regs, sizeof(uint32_t) * cRegs); 3929 AssertRCReturn(rc, rc); 3930 } 3926 3931 3927 3932 /* Make sure to update the base addresses first before initializing any streams down below. */ … … 3941 3946 { 3942 3947 rc = pHlp->pfnSSMGetU64(pSSM, &pThis->u64WalClk); 3943 AssertRCReturn(rc, rc);3944 3948 rc = pHlp->pfnSSMGetU8(pSSM, &pThis->u8IRQL); 3945 3949 AssertRCReturn(rc, rc); … … 4005 4009 * Load period state. 4006 4010 */ 4007 hdaR3StreamPeriodInit(&pStream->State.Period, 4008 pStream->u8SD, pStream->u16LVI, pStream->u32CBL, &pStream->State.Cfg); 4011 hdaR3StreamPeriodInit(&pStream->State.Period, pStream->u8SD, pStream->u16LVI, pStream->u32CBL, &pStream->State.Cfg); 4009 4012 4010 4013 rc = pHlp->pfnSSMGetStructEx(pSSM, &pStream->State.Period, sizeof(HDASTREAMPERIOD), … … 4016 4019 */ 4017 4020 uint32_t cbCircBufSize = 0; 4018 rc =pHlp->pfnSSMGetU32(pSSM, &cbCircBufSize); /* cbCircBuf */4021 pHlp->pfnSSMGetU32(pSSM, &cbCircBufSize); /* cbCircBuf */ 4019 4022 uint32_t cbCircBufUsed = 0; 4020 4023 rc = pHlp->pfnSSMGetU32(pSSM, &cbCircBufUsed); /* cbCircBuf */
Note:
See TracChangeset
for help on using the changeset viewer.