VirtualBox

Changeset 31324 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 3, 2010 4:18:56 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64361
Message:

Audio/HDA: clearing SDSTS registers.

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

Legend:

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

    r31294 r31324  
    446446    return VINF_SUCCESS;
    447447}
     448
    448449/* 703 */
    449450static int codecSetProcessingState(struct CODECState *pState, uint32_t cmd, uint64_t *pResp)
     
    464465    return VINF_SUCCESS;
    465466}
     467
    466468/* F0D */
    467469static int codecGetDigitalConverter(struct CODECState *pState, uint32_t cmd, uint64_t *pResp)
     
    481483    return VINF_SUCCESS;
    482484}
     485
    483486/* 70D */
    484487static int codecSetDigitalConverter1(struct CODECState *pState, uint32_t cmd, uint64_t *pResp)
  • trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp

    r31278 r31324  
    982982{
    983983    uint32_t v = HDA_REG_IND(pState, index);
    984     //int rc = hdaRegWriteU8(pState, offset, index, u32Value);
    985     switch (offset)
    986     {
    987         case 0x83:
    988             SDSTS(pState, 0) ^= u32Value;
    989             break;
    990         case 0xA3:
    991             SDSTS(pState, 1) ^= u32Value;
    992             break;
    993         case 0xC3:
    994             SDSTS(pState, 2) ^= u32Value;
    995             break;
    996         case 0xE3:
    997             SDSTS(pState, 3) ^= u32Value;
    998             break;
    999         case 0x103:
    1000             SDSTS(pState, 4) ^= u32Value;
    1001             break;
    1002         case 0x123:
    1003             SDSTS(pState, 5) ^= u32Value;
    1004             break;
    1005         case 0x143:
    1006             SDSTS(pState, 6) ^= u32Value;
    1007             break;
    1008         case 0x163:
    1009             SDSTS(pState, 7) ^= u32Value;
    1010             break;
    1011     }
     984    v ^= (u32Value & v);
     985    HDA_REG_IND(pState, index) = v;
    1012986    hdaProcessInterrupt(pState);
    1013987#if 0
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette