- Timestamp:
- Jul 9, 2021 10:46:06 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145644
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHda.cpp
r90138 r90142 4991 4991 /* ICH6 datasheet defines 0 values for SVID and SID (18.1.14-15), which together with values returned for 4992 4992 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. */ 4997 4997 4998 4998 /* -
trunk/src/VBox/Devices/Audio/DevHdaCodec.cpp
r90141 r90142 786 786 static int stac9220Construct(PHDACODECR3 pThis) 787 787 { 788 pThis-> u16VendorId= 0x8384; /* SigmaTel */788 pThis->idVendor = 0x8384; /* SigmaTel */ 789 789 /* 790 790 * Note: The Linux kernel uses "patch_stac922x" for the fixups, … … 792 792 * defaults tweaking in sound/pci/hda/patch_sigmatel.c. 793 793 */ 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; 797 797 798 798 pThis->fInReset = false; … … 834 834 835 835 /* 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); 837 837 pThis->aNodes[STAC9220_NID_ROOT].root.node.au32F00_param[4] = CODEC_MAKE_F00_04(0x1, 0x1); 838 838 … … 841 841 pThis->aNodes[STAC9220_NID_AFG].afg.node.au32F00_param[0x5] = CODEC_MAKE_F00_05(1, CODEC_F00_05_AFG); 842 842 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); 844 844 845 845 return VINF_SUCCESS; … … 852 852 853 853 /* 854 * Some generic predicate functions. 854 * Some generic predicate functions. 855 855 */ 856 856 /** @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 799 799 /** Codec ID. */ 800 800 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; 805 805 806 806 bool fInReset;
Note:
See TracChangeset
for help on using the changeset viewer.