VirtualBox

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


Ignore:
Timestamp:
Aug 26, 2010 12:45:26 PM (14 years ago)
Author:
vboxsync
Message:

Audio/HDA: fixes assertion 0x1b is pin-node.

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r31984 r31990  
    347347    else if (STAC9220_IS_CD_CMD(cmd))
    348348        *pResp = pState->pNodes[CODEC_NID(cmd)].cdnode.u32F07_param;
     349    else if (   STAC9220_IS_RESERVED_CMD(cmd)
     350             && CODEC_NID(cmd) == 0x1b)
     351        *pResp = pState->pNodes[CODEC_NID(cmd)].reserved.u32F07_param;
    349352    else
    350353        AssertMsgFailed(("Unsupported"));
     
    372375    else if (STAC9220_IS_CD_CMD(cmd))
    373376        pu32Reg = &pState->pNodes[CODEC_NID(cmd)].cdnode.u32F07_param;
     377    else if (   STAC9220_IS_RESERVED_CMD(cmd)
     378             && CODEC_NID(cmd) == 0x1b)
     379        pu32Reg = &pState->pNodes[CODEC_NID(cmd)].reserved.u32F07_param;
    374380    Assert((pu32Reg));
    375381    if (pu32Reg)
     
    11631169            pNode->node.au32F00_param[0xE] = 0x1;
    11641170            pNode->node.au8F02_param[0] = 0x1a;
     1171            pNode->reserved.u32F07_param = 0;
    11651172            break;
    11661173        default:
  • trunk/src/VBox/Devices/Audio/DevCodec.h

    r31771 r31990  
    183183} ADCVOLNODE, *PADCVOLNODE;
    184184
     185typedef struct RESNODE
     186{
     187    CODECCOMMONNODE node;
     188    uint32_t    u32F07_param;
     189} RESNODE, *PRESNODE;
     190
    185191typedef union CODECNODE
    186192{
     
    200206    VOLUMEKNOBNODE  volumeKnob;
    201207    ADCVOLNODE      adcvol;
     208    RESNODE         reserved;
    202209} CODECNODE, *PCODECNODE;
    203210
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