VirtualBox

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


Ignore:
Timestamp:
Jul 23, 2010 6:24:09 AM (14 years ago)
Author:
vboxsync
Message:

Audio/HDA: STATES/WAKEEN shouldn't be cleared on hdaReset only on power on/reset.

File:
1 edited

Legend:

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

    r31032 r31033  
    7777#define ICH6_HDA_GCTL_FSH_SHIFT (1)
    7878#define GCTL(pState) (HDA_REG((pState), GCTL))
     79
     80#define ICH6_HDA_REG_WAKEEN 6 /* 0x0C */
     81#define WAKEEN(pState) (HDA_REG((pState), WAKEEN))
    7982
    8083#define ICH6_HDA_REG_STATES 7 /* range 0x0E */
     
    452455    { 0x00006, 0x00002, 0x0000FFFF, 0x00000000, hdaRegReadU16          , hdaRegWriteUnimplemented, "INPAY"     , "Input Payload Capabilities" },
    453456    { 0x00008, 0x00004, 0x00000103, 0x00000103, hdaRegReadGCTL         , hdaRegWriteGCTL         , "GCTL"      , "Global Control" },
    454     { 0x0000c, 0x00002, 0xFFFFFFFF, 0x00000000, hdaRegReadUnimplemented, hdaRegWriteUnimplemented, "WAKEEN"    , "Wake Enable" },
     457    { 0x0000c, 0x00002, 0x00007FFF, 0x00007FFF, hdaRegReadU16          , hdaRegWriteU16          , "WAKEEN"    , "Wake Enable" },
    455458    { 0x0000e, 0x00002, 0x00000007, 0x00000007, hdaRegReadU8           , hdaRegWriteSTATESTS     , "STATESTS"  , "State Change Status" },
    456459    { 0x00010, 0x00002, 0xFFFFFFFF, 0x00000000, hdaRegReadUnimplemented, hdaRegWriteUnimplemented, "GSTS"      , "Global Status" },
     
    13511354    pThis->hda.au32Regs[ICH6_HDA_REG_CORBSIZE] = 0x42; /* see 6.2.1 */
    13521355    pThis->hda.au32Regs[ICH6_HDA_REG_RIRBSIZE] = 0x42; /* see 6.2.1 */
    1353     STATES(&pThis->hda) = 0x1;
    13541356    CORBRP(&pThis->hda) = 0x0;
    13551357    RIRBWP(&pThis->hda) = 0x0;
     
    15091511    hdaReset (pDevIns);
    15101512    pThis->hda.Codec.pfnTransfer = hdaTransfer;
     1513    /*
     1514     * 18.2.6,7 defines that values of this registers might be cleared on power on/reset
     1515     * hdaReset shouldn't affects these registers.
     1516     */
     1517    WAKEEN(&pThis->hda) = 0x1;
     1518    STATES(&pThis->hda) = 0x1;
    15111519
    15121520    return VINF_SUCCESS;
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