VirtualBox

Changeset 90142 in vbox for trunk/src


Ignore:
Timestamp:
Jul 9, 2021 10:46:06 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145644
Message:

DevHdaCodec: Renamed some more member names. bugref:9890

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

Legend:

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

    r90138 r90142  
    49914991    /* ICH6 datasheet defines 0 values for SVID and SID (18.1.14-15), which together with values returned for
    49924992       verb F20 should provide device/codec recognition. */
    4993     Assert(pThisCC->Codec.u16VendorId);
    4994     Assert(pThisCC->Codec.u16DeviceId);
    4995     PDMPciDevSetSubSystemVendorId(pPciDev, pThisCC->Codec.u16VendorId); /* 2c ro - intel.) */
    4996     PDMPciDevSetSubSystemId(      pPciDev, pThisCC->Codec.u16DeviceId); /* 2e ro. */
     4993    Assert(pThisCC->Codec.idVendor);
     4994    Assert(pThisCC->Codec.idDevice);
     4995    PDMPciDevSetSubSystemVendorId(pPciDev, pThisCC->Codec.idVendor); /* 2c ro - intel.) */
     4996    PDMPciDevSetSubSystemId(      pPciDev, pThisCC->Codec.idDevice); /* 2e ro. */
    49974997
    49984998    /*
  • trunk/src/VBox/Devices/Audio/DevHdaCodec.cpp

    r90141 r90142  
    786786static int stac9220Construct(PHDACODECR3 pThis)
    787787{
    788     pThis->u16VendorId  = 0x8384; /* SigmaTel */
     788    pThis->idVendor     = 0x8384; /* SigmaTel */
    789789    /*
    790790     * Note: The Linux kernel uses "patch_stac922x" for the fixups,
     
    792792     *       defaults tweaking in sound/pci/hda/patch_sigmatel.c.
    793793     */
    794     pThis->u16DeviceId  = 0x7680; /* STAC9221 A1 */
    795     pThis->u8BSKU       = 0x76;
    796     pThis->u8AssemblyId = 0x80;
     794    pThis->idDevice     = 0x7680; /* STAC9221 A1 */
     795    pThis->bBSKU        = 0x76;
     796    pThis->idAssembly  = 0x80;
    797797
    798798    pThis->fInReset = false;
     
    834834
    835835    /* Common root node initializers. */
    836     pThis->aNodes[STAC9220_NID_ROOT].root.node.au32F00_param[0] = CODEC_MAKE_F00_00(pThis->u16VendorId, pThis->u16DeviceId);
     836    pThis->aNodes[STAC9220_NID_ROOT].root.node.au32F00_param[0] = CODEC_MAKE_F00_00(pThis->idVendor, pThis->idDevice);
    837837    pThis->aNodes[STAC9220_NID_ROOT].root.node.au32F00_param[4] = CODEC_MAKE_F00_04(0x1, 0x1);
    838838
     
    841841    pThis->aNodes[STAC9220_NID_AFG].afg.node.au32F00_param[0x5] = CODEC_MAKE_F00_05(1, CODEC_F00_05_AFG);
    842842    pThis->aNodes[STAC9220_NID_AFG].afg.node.au32F00_param[0xA] = CODEC_F00_0A_44_1KHZ | CODEC_F00_0A_16_BIT;
    843     pThis->aNodes[STAC9220_NID_AFG].afg.u32F20_param = CODEC_MAKE_F20(pThis->u16VendorId, pThis->u8BSKU, pThis->u8AssemblyId);
     843    pThis->aNodes[STAC9220_NID_AFG].afg.u32F20_param = CODEC_MAKE_F20(pThis->idVendor, pThis->bBSKU, pThis->idAssembly);
    844844
    845845    return VINF_SUCCESS;
     
    852852
    853853/*
    854  * Some generic predicate functions. 
     854 * Some generic predicate functions.
    855855 */
    856856/** @todo r=bird: we could use memchr here if we knew the array always ended with zeros */
  • trunk/src/VBox/Devices/Audio/DevHdaCodec.h

    r90141 r90142  
    799799    /** Codec ID. */
    800800    uint16_t    id;
    801     uint16_t    u16VendorId;
    802     uint16_t    u16DeviceId;
    803     uint8_t     u8BSKU;
    804     uint8_t     u8AssemblyId;
     801    uint16_t    idVendor;
     802    uint16_t    idDevice;
     803    uint8_t     bBSKU;
     804    uint8_t     idAssembly;
    805805
    806806    bool        fInReset;
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