Changeset 33810 in vbox
- Timestamp:
- Nov 5, 2010 7:03:02 PM (14 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
-
DevCodec.cpp (modified) (6 diffs)
-
DevCodec.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevCodec.cpp
r33803 r33810 318 318 #define CODEC_DEFAULT_CONF_SEQ_SHIFT (0) 319 319 320 /* Implementation identification (7.3.3.30) */ 321 #define CODEC_MAKE_F20(bmid, bsku, aid) \ 322 ( (((bmid) & 0xFFFF) << 16) \ 323 | (((bsku) & 0xFF) << 8) \ 324 | (((aid) & 0xFF)) \ 325 ) 326 320 327 /* macro definition helping in filling the configuration registers. */ 321 328 #define CODEC_MAKE_U32_DEFAULT_CONF(port_connectivity, location, device, connection_type, color, misc, association, sequence) \ … … 352 359 pState->u16VendorId = 0x8384; 353 360 pState->u16DeviceId = 0x7680; 361 pState->u8BSKU = 0x76; 362 pState->u8AssemblyId = 0x80; 354 363 pState->pNodes = (PCODECNODE)RTMemAllocZ(sizeof(CODECNODE) * pState->cTotalNodes); 355 364 pState->fInReset = false; … … 401 410 pNode->node.au32F00_param[0xF] = CODEC_F00_0F_D3|CODEC_F00_0F_D2|CODEC_F00_0F_D1|CODEC_F00_0F_D0; 402 411 pNode->afg.u32F05_param = CODEC_MAKE_F05(0, 0, 0, CODEC_F05_D2, CODEC_F05_D2);//0x2 << 4| 0x2; /* PS-Act: D3, PS->Set D3 */ 403 pNode->afg.u32F20_param = pState->u16VendorId << 16 | pState->u16DeviceId;404 412 pNode->afg.u32F08_param = 0; 405 413 pNode->afg.u32F17_param = 0; … … 773 781 pState->u16VendorId = 0x10ec; 774 782 pState->u16DeviceId = 0x0885; 783 pState->u8BSKU = 0x08; 784 pState->u8AssemblyId = 0x85; 775 785 pState->pfnCodecNodeReset = alc885ResetNode; 776 786 pState->pNodes = (PCODECNODE)RTMemAllocZ(sizeof(CODECNODE) * pState->cTotalNodes); … … 809 819 break; 810 820 case 0x1: /* AFG */ 811 pNode->afg.u32F20_param = pState->u16VendorId << 16 | pState->u16DeviceId;812 821 pNode->node.au32F00_param[0xB] = CODEC_F00_0B_PCM; 813 822 pNode->node.au32F00_param[0x11] = RT_BIT(30)|0x2; … … 2274 2283 pState->pNodes[1].node.au32F00_param[4] = CODEC_MAKE_F00_04(0x2, pState->cTotalNodes - 2); 2275 2284 pState->pNodes[1].node.au32F00_param[5] = CODEC_MAKE_F00_05(CODEC_F00_05_UNSOL, CODEC_F00_05_AFG); 2285 pState->pNodes[1].afg.u32F20_param = CODEC_MAKE_F20(pState->u16VendorId, pState->u8BSKU, pState->u8AssemblyId); 2276 2286 2277 2287 //** @todo r=michaln: Was this meant to be 'HDA' or something like that? (AC'97 was on ICH0) -
trunk/src/VBox/Devices/Audio/DevCodec.h
r33676 r33810 269 269 uint16_t u16VendorId; 270 270 uint16_t u16DeviceId; 271 uint8_t u8BSKU; 272 uint8_t u8AssemblyId; 271 273 CODECVERB *pVerbs; 272 274 int cVerbs; … … 311 313 } CODECState; 312 314 313 314 315 int codecConstruct(CODECState *pCodecState, ENMCODEC enmCodec); 315 316 int codecDestruct(CODECState *pCodecState);
Note:
See TracChangeset
for help on using the changeset viewer.

