VirtualBox

Changeset 49305 in vbox for trunk


Ignore:
Timestamp:
Oct 28, 2013 10:27:14 AM (11 years ago)
Author:
vboxsync
Message:

HDA: State loading fixes. Don't zero regs not in the saved state, just use the reset values.

File:
1 edited

Legend:

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

    r49217 r49305  
    26082608        case HDA_SSM_VERSION:
    26092609            rc = SSMR3GetU32(pSSM, &cRegs); AssertRCReturn(rc, rc);
    2610             AssertLogRelMsgReturn(cRegs == RT_ELEMENTS(pThis->au32Regs),
    2611                                   ("cRegs is %d, expected %d\n", cRegs, RT_ELEMENTS(pThis->au32Regs)),
    2612                                   VERR_SSM_DATA_UNIT_FORMAT_CHANGED);
     2610            if (cRegs != RT_ELEMENTS(pThis->au32Regs))
     2611                LogRel(("hda: cRegs is %d, expected %d\n", cRegs, RT_ELEMENTS(pThis->au32Regs)));
    26132612            break;
    26142613
     
    26232622    }
    26242623    else
    2625     {
    2626         RT_ZERO(pThis->au32Regs);
    26272624        SSMR3GetMem(pSSM, pThis->au32Regs, sizeof(uint32_t) * cRegs);
    2628     }
    26292625
    26302626    /*
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