VirtualBox

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


Ignore:
Timestamp:
Jul 23, 2010 10:08:59 AM (14 years ago)
Author:
vboxsync
Message:

Audio/HDA: codecLookup changed in a way to return codeUnimplemented in case verb implementaion wasn't found in STAC9220CODECVERB. and some todo.

File:
1 edited

Legend:

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

    r31043 r31047  
    5959#define CODEC_B_INDEX(cmd)      ((cmd) & CODEC_VERB_B_INDEX)
    6060
    61 //** @todo r=michaln: Please document why this is bit 36 (it's not the same as the link format)
    62 #define CODEC_RESPONSE_UNSOLICITED RT_BIT_64(36)
     61/* RPM 5.3.1 */
     62#define CODEC_RESPONSE_UNSOLICITED RT_BIT_64(34)
    6363
    6464#define STAC9220_NODE_COUNT 0x1C
     
    426426/*  -----------  --------------------   -----------------------  */
    427427    {0x000F0000, CODEC_VERB_8BIT_CMD,  codecGetF00},
    428     {0x0007FF00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    429     {0x000FE700, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    430     {0x00070E70, CODEC_VERB_4BIT_CMD,  codecUnimplemented},
    431     {0x000F0500, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    432     {0x00070500, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    433     {0x000F0800, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    434     {0x00070800, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    435     {0x000F1500, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    436     {0x00071500, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    437     {0x000F1600, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    438     {0x00071600, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    439     {0x000F1700, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    440     {0x00071700, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    441     {0x000F1800, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    442     {0x00071800, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    443     {0x000F1900, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    444     {0x00071900, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    445     {0x000F1A00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    446     {0x00071A00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    447     {0x000F2000, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    448     {0x00072000, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    449     {0x00072100, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    450     {0x00072200, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    451     {0x00072300, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    452     {0x000A0000, CODEC_VERB_16BIT_CMD, codecUnimplemented},
    453428    {0x00020000, CODEC_VERB_16BIT_CMD, codecSetConverterFormat},
    454429    {0x000B0000, CODEC_VERB_16BIT_CMD, codecGetAmplifier },
    455     {0x00030000, CODEC_VERB_16BIT_CMD, codecUnimplemented},
    456     {0x000F0600, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    457430    {0x00070600, CODEC_VERB_8BIT_CMD,  stac9220Set706    },
    458     {0x000F0C00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    459     {0x00070C00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    460     {0x000F0300, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    461     {0x00070300, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    462     {0x000F0D00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    463     {0x00070D00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    464     {0x00070E00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    465431    {0x000F0700, CODEC_VERB_8BIT_CMD,  stac9220SetPinCtrl},
    466432    {0x00070700, CODEC_VERB_8BIT_CMD,  stac9220GetPinCtrl},
    467     {0x000F0200, CODEC_VERB_8BIT_CMD,  codecGetF02          },
    468     {0x000F0900, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    469     {0x00070900, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    470     {0x000F1C00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    471     {0x00071C00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    472     {0x00071D00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    473     {0x00071E00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    474     {0x00071F00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    475     {0x000F0100, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    476     {0x00070100, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    477     {0x000F0A00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    478     {0x00070A00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    479     {0x000F0F00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    480     {0x00070F00, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
    481     {0x0007E700, CODEC_VERB_8BIT_CMD,  codecUnimplemented},
     433    {0x000F0200, CODEC_VERB_8BIT_CMD,  codecGetF02       },
    482434};
    483435
     
    502454        }
    503455    }
     456    *pfn = codecUnimplemented;
    504457    LogRel(("intelHD: callback for %x wasn't found\n", CODEC_VERBDATA(cmd)));
    505458    return rc;
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