- Timestamp:
- Nov 8, 2010 11:27:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevCodec.cpp
r33817 r33829 255 255 /* HDA spec 7.3.3.31 defines layout of configuration registers/verbs (0xF1C) */ 256 256 /* Configuration's port connection */ 257 #define CODEC_ DEFAULT_CONF_PORT_MASK (0x3)258 #define CODEC_ DEFAULT_CONF_PORT_SHIFT (30)259 260 #define CODEC_ DEFAULT_CONF_PORT_COMPLEX (0x0)261 #define CODEC_ DEFAULT_CONF_PORT_NO_PHYS (0x1)262 #define CODEC_ DEFAULT_CONF_PORT_FIXED (0x2)263 #define CODEC_ DEFAULT_CONF_BOTH (0x3)257 #define CODEC_F1C_PORT_MASK (0x3) 258 #define CODEC_F1C_PORT_SHIFT (30) 259 260 #define CODEC_F1C_PORT_COMPLEX (0x0) 261 #define CODEC_F1C_PORT_NO_PHYS (0x1) 262 #define CODEC_F1C_PORT_FIXED (0x2) 263 #define CODEC_F1C_BOTH (0x3) 264 264 265 265 /* Configuration's location */ 266 #define CODEC_ DEFAULT_CONF_LOCATION_MASK (0x3F)267 #define CODEC_ DEFAULT_CONF_LOCATION_SHIFT (24)266 #define CODEC_F1C_LOCATION_MASK (0x3F) 267 #define CODEC_F1C_LOCATION_SHIFT (24) 268 268 /* [4:5] bits of location region means chassis attachment */ 269 #define CODEC_ DEFAULT_CONF_LOCATION_PRIMARY_CHASSIS (0)270 #define CODEC_ DEFAULT_CONF_LOCATION_INTERNAL RT_BIT(4)271 #define CODEC_ DEFAULT_CONF_LOCATION_SECONDRARY_CHASSIS RT_BIT(5)272 #define CODEC_ DEFAULT_CONF_LOCATION_OTHER (RT_BIT(5))269 #define CODEC_F1C_LOCATION_PRIMARY_CHASSIS (0) 270 #define CODEC_F1C_LOCATION_INTERNAL RT_BIT(4) 271 #define CODEC_F1C_LOCATION_SECONDRARY_CHASSIS RT_BIT(5) 272 #define CODEC_F1C_LOCATION_OTHER (RT_BIT(5)) 273 273 274 274 /* [0:3] bits of location region means geometry location attachment */ 275 #define CODEC_ DEFAULT_CONF_LOCATION_NA (0)276 #define CODEC_ DEFAULT_CONF_LOCATION_REAR (0x1)277 #define CODEC_ DEFAULT_CONF_LOCATION_FRONT (0x2)278 #define CODEC_ DEFAULT_CONF_LOCATION_LEFT (0x3)279 #define CODEC_ DEFAULT_CONF_LOCATION_RIGTH (0x4)280 #define CODEC_ DEFAULT_CONF_LOCATION_TOP (0x5)281 #define CODEC_ DEFAULT_CONF_LOCATION_BOTTOM (0x6)282 #define CODEC_ DEFAULT_CONF_LOCATION_SPECIAL_0 (0x7)283 #define CODEC_ DEFAULT_CONF_LOCATION_SPECIAL_1 (0x8)284 #define CODEC_ DEFAULT_CONF_LOCATION_SPECIAL_3 (0x9)275 #define CODEC_F1C_LOCATION_NA (0) 276 #define CODEC_F1C_LOCATION_REAR (0x1) 277 #define CODEC_F1C_LOCATION_FRONT (0x2) 278 #define CODEC_F1C_LOCATION_LEFT (0x3) 279 #define CODEC_F1C_LOCATION_RIGTH (0x4) 280 #define CODEC_F1C_LOCATION_TOP (0x5) 281 #define CODEC_F1C_LOCATION_BOTTOM (0x6) 282 #define CODEC_F1C_LOCATION_SPECIAL_0 (0x7) 283 #define CODEC_F1C_LOCATION_SPECIAL_1 (0x8) 284 #define CODEC_F1C_LOCATION_SPECIAL_3 (0x9) 285 285 286 286 /* Configuration's devices */ 287 #define CODEC_ DEFAULT_CONF_DEVICE_MASK (0xF)288 #define CODEC_ DEFAULT_CONF_DEVICE_SHIFT (20)289 #define CODEC_ DEFAULT_CONF_DEVICE_LINE_OUT (0)290 #define CODEC_ DEFAULT_CONF_DEVICE_SPEAKER (0x1)291 #define CODEC_ DEFAULT_CONF_DEVICE_HP (0x2)292 #define CODEC_ DEFAULT_CONF_DEVICE_CD (0x3)293 #define CODEC_ DEFAULT_CONF_DEVICE_SPDIF_OUT (0x4)294 #define CODEC_ DEFAULT_CONF_DEVICE_DIGITAL_OTHER_OUT (0x5)295 #define CODEC_ DEFAULT_CONF_DEVICE_MODEM_LINE_SIDE (0x6)296 #define CODEC_ DEFAULT_CONF_DEVICE_MODEM_HANDSET_SIDE (0x7)297 #define CODEC_ DEFAULT_CONF_DEVICE_LINE_IN (0x8)298 #define CODEC_ DEFAULT_CONF_DEVICE_AUX (0x9)299 #define CODEC_ DEFAULT_CONF_DEVICE_MIC (0xA)300 #define CODEC_ DEFAULT_CONF_DEVICE_PHONE (0xB)301 #define CODEC_ DEFAULT_CONF_DEVICE_SPDIF_IN (0xC)302 #define CODEC_ DEFAULT_CONF_DEVICE_RESERVED (0xE)303 #define CODEC_ DEFAULT_CONF_DEVICE_OTHER (0xF)287 #define CODEC_F1C_DEVICE_MASK (0xF) 288 #define CODEC_F1C_DEVICE_SHIFT (20) 289 #define CODEC_F1C_DEVICE_LINE_OUT (0) 290 #define CODEC_F1C_DEVICE_SPEAKER (0x1) 291 #define CODEC_F1C_DEVICE_HP (0x2) 292 #define CODEC_F1C_DEVICE_CD (0x3) 293 #define CODEC_F1C_DEVICE_SPDIF_OUT (0x4) 294 #define CODEC_F1C_DEVICE_DIGITAL_OTHER_OUT (0x5) 295 #define CODEC_F1C_DEVICE_MODEM_LINE_SIDE (0x6) 296 #define CODEC_F1C_DEVICE_MODEM_HANDSET_SIDE (0x7) 297 #define CODEC_F1C_DEVICE_LINE_IN (0x8) 298 #define CODEC_F1C_DEVICE_AUX (0x9) 299 #define CODEC_F1C_DEVICE_MIC (0xA) 300 #define CODEC_F1C_DEVICE_PHONE (0xB) 301 #define CODEC_F1C_DEVICE_SPDIF_IN (0xC) 302 #define CODEC_F1C_DEVICE_RESERVED (0xE) 303 #define CODEC_F1C_DEVICE_OTHER (0xF) 304 304 305 305 /* Configuration's Connection type */ 306 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_MASK (0xF)307 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_SHIFT (16)308 309 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_UNKNOWN (0)310 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_1_8INCHES (0x1)311 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_1_4INCHES (0x2)312 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_ATAPI (0x3)313 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_RCA (0x4)314 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_OPTICAL (0x5)315 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_OTHER_DIGITAL (0x6)316 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_ANALOG (0x7)317 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_DIN (0x8)318 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_XLR (0x9)319 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_RJ_11 (0xA)320 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_COMBO (0xB)321 #define CODEC_ DEFAULT_CONF_CONNECTION_TYPE_OTHER (0xF)306 #define CODEC_F1C_CONNECTION_TYPE_MASK (0xF) 307 #define CODEC_F1C_CONNECTION_TYPE_SHIFT (16) 308 309 #define CODEC_F1C_CONNECTION_TYPE_UNKNOWN (0) 310 #define CODEC_F1C_CONNECTION_TYPE_1_8INCHES (0x1) 311 #define CODEC_F1C_CONNECTION_TYPE_1_4INCHES (0x2) 312 #define CODEC_F1C_CONNECTION_TYPE_ATAPI (0x3) 313 #define CODEC_F1C_CONNECTION_TYPE_RCA (0x4) 314 #define CODEC_F1C_CONNECTION_TYPE_OPTICAL (0x5) 315 #define CODEC_F1C_CONNECTION_TYPE_OTHER_DIGITAL (0x6) 316 #define CODEC_F1C_CONNECTION_TYPE_ANALOG (0x7) 317 #define CODEC_F1C_CONNECTION_TYPE_DIN (0x8) 318 #define CODEC_F1C_CONNECTION_TYPE_XLR (0x9) 319 #define CODEC_F1C_CONNECTION_TYPE_RJ_11 (0xA) 320 #define CODEC_F1C_CONNECTION_TYPE_COMBO (0xB) 321 #define CODEC_F1C_CONNECTION_TYPE_OTHER (0xF) 322 322 323 323 /* Configuration's color */ 324 #define CODEC_ DEFAULT_CONF_COLOR_MASK (0xF)325 #define CODEC_ DEFAULT_CONF_COLOR_SHIFT (12)326 #define CODEC_ DEFAULT_CONF_COLOR_UNKNOWN (0)327 #define CODEC_ DEFAULT_CONF_COLOR_BLACK (0x1)328 #define CODEC_ DEFAULT_CONF_COLOR_GREY (0x2)329 #define CODEC_ DEFAULT_CONF_COLOR_BLUE (0x3)330 #define CODEC_ DEFAULT_CONF_COLOR_GREEN (0x4)331 #define CODEC_ DEFAULT_CONF_COLOR_RED (0x5)332 #define CODEC_ DEFAULT_CONF_COLOR_ORANGE (0x6)333 #define CODEC_ DEFAULT_CONF_COLOR_YELLOW (0x7)334 #define CODEC_ DEFAULT_CONF_COLOR_PURPLE (0x8)335 #define CODEC_ DEFAULT_CONF_COLOR_PINK (0x9)336 #define CODEC_ DEFAULT_CONF_COLOR_RESERVED_0 (0xA)337 #define CODEC_ DEFAULT_CONF_COLOR_RESERVED_1 (0xB)338 #define CODEC_ DEFAULT_CONF_COLOR_RESERVED_2 (0xC)339 #define CODEC_ DEFAULT_CONF_COLOR_RESERVED_3 (0xD)340 #define CODEC_ DEFAULT_CONF_COLOR_WHITE (0xE)341 #define CODEC_ DEFAULT_CONF_COLOR_OTHER (0xF)324 #define CODEC_F1C_COLOR_MASK (0xF) 325 #define CODEC_F1C_COLOR_SHIFT (12) 326 #define CODEC_F1C_COLOR_UNKNOWN (0) 327 #define CODEC_F1C_COLOR_BLACK (0x1) 328 #define CODEC_F1C_COLOR_GREY (0x2) 329 #define CODEC_F1C_COLOR_BLUE (0x3) 330 #define CODEC_F1C_COLOR_GREEN (0x4) 331 #define CODEC_F1C_COLOR_RED (0x5) 332 #define CODEC_F1C_COLOR_ORANGE (0x6) 333 #define CODEC_F1C_COLOR_YELLOW (0x7) 334 #define CODEC_F1C_COLOR_PURPLE (0x8) 335 #define CODEC_F1C_COLOR_PINK (0x9) 336 #define CODEC_F1C_COLOR_RESERVED_0 (0xA) 337 #define CODEC_F1C_COLOR_RESERVED_1 (0xB) 338 #define CODEC_F1C_COLOR_RESERVED_2 (0xC) 339 #define CODEC_F1C_COLOR_RESERVED_3 (0xD) 340 #define CODEC_F1C_COLOR_WHITE (0xE) 341 #define CODEC_F1C_COLOR_OTHER (0xF) 342 342 343 343 /* Configuration's misc */ 344 #define CODEC_ DEFAULT_CONF_MISC_MASK (0xF)345 #define CODEC_ DEFAULT_CONF_MISC_SHIFT (8)346 #define CODEC_ DEFAULT_CONF_MISC_JACK_DETECT RT_BIT(0)347 #define CODEC_ DEFAULT_CONF_MISC_RESERVED_0 RT_BIT(1)348 #define CODEC_ DEFAULT_CONF_MISC_RESERVED_1 RT_BIT(2)349 #define CODEC_ DEFAULT_CONF_MISC_RESERVED_2 RT_BIT(3)344 #define CODEC_F1C_MISC_MASK (0xF) 345 #define CODEC_F1C_MISC_SHIFT (8) 346 #define CODEC_F1C_MISC_JACK_DETECT RT_BIT(0) 347 #define CODEC_F1C_MISC_RESERVED_0 RT_BIT(1) 348 #define CODEC_F1C_MISC_RESERVED_1 RT_BIT(2) 349 #define CODEC_F1C_MISC_RESERVED_2 RT_BIT(3) 350 350 351 351 /* Configuration's association */ 352 #define CODEC_ DEFAULT_CONF_ASSOCIATION_MASK (0xF)353 #define CODEC_ DEFAULT_CONF_ASSOCIATION_SHIFT (4)352 #define CODEC_F1C_ASSOCIATION_MASK (0xF) 353 #define CODEC_F1C_ASSOCIATION_SHIFT (4) 354 354 /* Connection's sequence */ 355 #define CODEC_ DEFAULT_CONF_SEQ_MASK (0xF)356 #define CODEC_ DEFAULT_CONF_SEQ_SHIFT (0)355 #define CODEC_F1C_SEQ_MASK (0xF) 356 #define CODEC_F1C_SEQ_SHIFT (0) 357 357 358 358 /* Implementation identification (7.3.3.30) */ … … 364 364 365 365 /* macro definition helping in filling the configuration registers. */ 366 #define CODEC_MAKE_ U32_DEFAULT_CONF(port_connectivity, location, device, connection_type, color, misc, association, sequence) \367 ( ((port_connectivity) << CODEC_ DEFAULT_CONF_PORT_SHIFT) \368 | ((location) << CODEC_ DEFAULT_CONF_LOCATION_SHIFT) \369 | ((device) << CODEC_ DEFAULT_CONF_DEVICE_SHIFT) \370 | ((connection_type) << CODEC_ DEFAULT_CONF_CONNECTION_TYPE_SHIFT) \371 | ((color) << CODEC_ DEFAULT_CONF_COLOR_SHIFT) \372 | ((misc) << CODEC_ DEFAULT_CONF_MISC_SHIFT) \373 | ((association) << CODEC_ DEFAULT_CONF_ASSOCIATION_SHIFT) \366 #define CODEC_MAKE_F1C(port_connectivity, location, device, connection_type, color, misc, association, sequence) \ 367 ( ((port_connectivity) << CODEC_F1C_PORT_SHIFT) \ 368 | ((location) << CODEC_F1C_LOCATION_SHIFT) \ 369 | ((device) << CODEC_F1C_DEVICE_SHIFT) \ 370 | ((connection_type) << CODEC_F1C_CONNECTION_TYPE_SHIFT) \ 371 | ((color) << CODEC_F1C_COLOR_SHIFT) \ 372 | ((misc) << CODEC_F1C_MISC_SHIFT) \ 373 | ((association) << CODEC_F1C_ASSOCIATION_SHIFT) \ 374 374 | ((sequence))) 375 375 … … 536 536 pNode->port.u32F08_param = 0; 537 537 if (!pState->fInReset) 538 pNode->port.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_COMPLEX,539 CODEC_DEFAULT_CONF_LOCATION_FRONT,540 CODEC_DEFAULT_CONF_DEVICE_HP,541 CODEC_DEFAULT_CONF_CONNECTION_TYPE_1_8INCHES,542 CODEC_DEFAULT_CONF_COLOR_GREEN,543 CODEC_DEFAULT_CONF_MISC_JACK_DETECT,544 538 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 539 CODEC_F1C_LOCATION_FRONT, 540 CODEC_F1C_DEVICE_HP, 541 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 542 CODEC_F1C_COLOR_GREEN, 543 CODEC_F1C_MISC_JACK_DETECT, 544 0x2, 0);//RT_MAKE_U32_FROM_U8(0x20, 0x40, 0x21, 0x02); 545 545 goto port_init; 546 546 case 0xB: … … 555 555 pNode->port.u32F07_param = RT_BIT(5); 556 556 if (!pState->fInReset) 557 pNode->port.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_COMPLEX,558 CODEC_DEFAULT_CONF_LOCATION_INTERNAL|CODEC_DEFAULT_CONF_LOCATION_REAR,559 CODEC_DEFAULT_CONF_DEVICE_SPEAKER,560 CODEC_DEFAULT_CONF_CONNECTION_TYPE_1_8INCHES,561 CODEC_DEFAULT_CONF_COLOR_BLACK,562 CODEC_DEFAULT_CONF_MISC_JACK_DETECT,563 557 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 558 CODEC_F1C_LOCATION_INTERNAL|CODEC_F1C_LOCATION_REAR, 559 CODEC_F1C_DEVICE_SPEAKER, 560 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 561 CODEC_F1C_COLOR_BLACK, 562 CODEC_F1C_MISC_JACK_DETECT, 563 0x1, 0x1);//RT_MAKE_U32_FROM_U8(0x11, 0x60, 0x11, 0x01); 564 564 goto port_init; 565 565 case 0xC: … … 574 574 pNode->port.u32F07_param = RT_BIT(5); 575 575 if (!pState->fInReset) 576 pNode->port.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_COMPLEX,577 CODEC_DEFAULT_CONF_LOCATION_REAR,578 CODEC_DEFAULT_CONF_DEVICE_SPEAKER,579 CODEC_DEFAULT_CONF_CONNECTION_TYPE_1_8INCHES,580 CODEC_DEFAULT_CONF_COLOR_GREEN,581 576 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 577 CODEC_F1C_LOCATION_REAR, 578 CODEC_F1C_DEVICE_SPEAKER, 579 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 580 CODEC_F1C_COLOR_GREEN, 581 0x0, 0x1, 0x0);//RT_MAKE_U32_FROM_U8(0x10, 0x40, 0x11, 0x01); 582 582 goto port_init; 583 583 case 0xD: … … 592 592 pNode->node.au32F02_param[0] = 0x2; 593 593 if (!pState->fInReset) 594 pNode->port.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_COMPLEX,595 CODEC_DEFAULT_CONF_LOCATION_FRONT,596 CODEC_DEFAULT_CONF_DEVICE_MIC,597 CODEC_DEFAULT_CONF_CONNECTION_TYPE_1_8INCHES,598 CODEC_DEFAULT_CONF_COLOR_PINK,599 594 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 595 CODEC_F1C_LOCATION_FRONT, 596 CODEC_F1C_DEVICE_MIC, 597 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 598 CODEC_F1C_COLOR_PINK, 599 0x0, 0x5, 0x0);//RT_MAKE_U32_FROM_U8(0x50, 0x90, 0xA1, 0x02); /* Microphone */ 600 600 port_init: 601 601 pNode->port.u32F09_param = CODEC_MAKE_F09_ANALOG(1, CODEC_F09_ANALOG_NA);//RT_BIT(31)|0x7fffffff; … … 619 619 pNode->port.u32F09_param = CODEC_MAKE_F09_ANALOG(0, CODEC_F09_ANALOG_NA);//0x7fffffff; 620 620 if (!pState->fInReset) 621 pNode->port.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_COMPLEX,622 CODEC_DEFAULT_CONF_LOCATION_REAR,623 CODEC_DEFAULT_CONF_DEVICE_LINE_OUT,624 CODEC_DEFAULT_CONF_CONNECTION_TYPE_1_8INCHES,625 CODEC_DEFAULT_CONF_COLOR_BLUE,626 621 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 622 CODEC_F1C_LOCATION_REAR, 623 CODEC_F1C_DEVICE_LINE_OUT, 624 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 625 CODEC_F1C_COLOR_BLUE, 626 0x0, 0x4, 0x0);//0x01013040; /* Line Out */ 627 627 break; 628 628 case 0xF: … … 642 642 pNode->port.u32F07_param = 0x40; 643 643 if (!pState->fInReset) 644 pNode->port.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_COMPLEX,645 CODEC_DEFAULT_CONF_LOCATION_REAR,646 CODEC_DEFAULT_CONF_DEVICE_SPEAKER,647 CODEC_DEFAULT_CONF_CONNECTION_TYPE_1_8INCHES,648 CODEC_DEFAULT_CONF_COLOR_ORANGE,649 644 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 645 CODEC_F1C_LOCATION_REAR, 646 CODEC_F1C_DEVICE_SPEAKER, 647 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 648 CODEC_F1C_COLOR_ORANGE, 649 0x0, 0x1, 0x2);//RT_MAKE_U32_FROM_U8(0x12, 0x60, 0x11, 0x01); 650 650 pNode->node.au32F02_param[0] = 0x5; 651 651 pNode->port.u32F09_param = CODEC_MAKE_F09_ANALOG(0, CODEC_F09_ANALOG_NA);//0x7fffffff; … … 663 663 pNode->digout.u32F07_param = 0; 664 664 if (!pState->fInReset) 665 pNode->digout.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_COMPLEX,666 CODEC_DEFAULT_CONF_LOCATION_REAR,667 CODEC_DEFAULT_CONF_DEVICE_SPDIF_OUT,668 CODEC_DEFAULT_CONF_CONNECTION_TYPE_DIN,669 CODEC_DEFAULT_CONF_COLOR_BLACK,670 665 pNode->digout.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 666 CODEC_F1C_LOCATION_REAR, 667 CODEC_F1C_DEVICE_SPDIF_OUT, 668 CODEC_F1C_CONNECTION_TYPE_DIN, 669 CODEC_F1C_COLOR_BLACK, 670 0x0, 0x3, 0x0);//RT_MAKE_U32_FROM_U8(0x30, 0x10, 0x45, 0x01); 671 671 break; 672 672 case 0x11: … … 682 682 pNode->digin.u32F0c_param = 0; 683 683 if (!pState->fInReset) 684 pNode->digin.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_COMPLEX,685 CODEC_DEFAULT_CONF_LOCATION_REAR,686 CODEC_DEFAULT_CONF_DEVICE_SPDIF_IN,687 CODEC_DEFAULT_CONF_CONNECTION_TYPE_OTHER_DIGITAL,688 CODEC_DEFAULT_CONF_COLOR_BLACK,689 684 pNode->digin.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 685 CODEC_F1C_LOCATION_REAR, 686 CODEC_F1C_DEVICE_SPDIF_IN, 687 CODEC_F1C_CONNECTION_TYPE_OTHER_DIGITAL, 688 CODEC_F1C_COLOR_BLACK, 689 0x0, 0x6, 0x0);//(0x1 << 24) | (0xc5 << 16) | (0x10 << 8) | 0x60; 690 690 break; 691 691 case 0x12: … … 725 725 pNode->cdnode.u32F07_param = 0; 726 726 if (!pState->fInReset) 727 pNode->cdnode.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_FIXED,728 CODEC_DEFAULT_CONF_LOCATION_INTERNAL,729 CODEC_DEFAULT_CONF_DEVICE_CD,730 CODEC_DEFAULT_CONF_CONNECTION_TYPE_ATAPI,731 CODEC_DEFAULT_CONF_COLOR_UNKNOWN,732 727 pNode->cdnode.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_FIXED, 728 CODEC_F1C_LOCATION_INTERNAL, 729 CODEC_F1C_DEVICE_CD, 730 CODEC_F1C_CONNECTION_TYPE_ATAPI, 731 CODEC_F1C_COLOR_UNKNOWN, 732 0x0, 0x7, 0x0);//RT_MAKE_U32_FROM_U8(0x70, 0x0, 0x33, 0x90); 733 733 break; 734 734 case 0x16: … … 783 783 pNode->node.au32F02_param[0] = 0x1a; 784 784 pNode->reserved.u32F07_param = 0; 785 pNode->reserved.u32F1c_param = CODEC_MAKE_ U32_DEFAULT_CONF(CODEC_DEFAULT_CONF_PORT_NO_PHYS,786 CODEC_DEFAULT_CONF_LOCATION_NA,787 CODEC_DEFAULT_CONF_DEVICE_LINE_OUT,788 CODEC_DEFAULT_CONF_CONNECTION_TYPE_UNKNOWN,789 CODEC_DEFAULT_CONF_COLOR_UNKNOWN,790 785 pNode->reserved.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_NO_PHYS, 786 CODEC_F1C_LOCATION_NA, 787 CODEC_F1C_DEVICE_LINE_OUT, 788 CODEC_F1C_CONNECTION_TYPE_UNKNOWN, 789 CODEC_F1C_COLOR_UNKNOWN, 790 0x0, 0x0, 0xf);//0x4000000f; 791 791 break; 792 792 default:
Note:
See TracChangeset
for help on using the changeset viewer.