Changeset 34591 in vbox
- Timestamp:
- Dec 2, 2010 4:30:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevCodec.cpp
r34590 r34591 214 214 #define CODEC_F05_ACT(value) (((value) & 0x7) >> 4) 215 215 #define CODEC_F05_SET(value) (((value) & 0x7)) 216 217 /* Pin Widged Control (7.3.3.13) */ 218 #define CODEC_F07_VREF_HIZ (0) 219 #define CODEC_F07_VREF_50 (0x1) 220 #define CODEC_F07_VREF_GROUND (0x2) 221 #define CODEC_F07_VREF_80 (0x4) 222 #define CODEC_F07_VREF_100 (0x5) 223 #define CODEC_F07_IN_ENABLE RT_BIT(5) 224 #define CODEC_F07_OUT_ENABLE RT_BIT(6) 225 #define CODEC_F07_OUT_H_ENABLE RT_BIT(7) 216 226 217 227 /* Converter formats (7.3.3.8) and (3.7.1) */ … … 511 521 pNode->node.name = "Reserved_0"; 512 522 pNode->spdifin.u32A_param = CODEC_MAKE_A(0, 1, CODEC_A_MULT_1X, CODEC_A_DIV_1X, CODEC_A_16_BIT, 1);//(0x1<<4) | 0x1; 513 pNode->spdifin.u32F09_param = CODEC_MAKE_F09_ANALOG(0, CODEC_F09_ANALOG_NA);//RT_BIT(31)|0x7fffffff;514 523 pNode->spdifin.node.au32F00_param[9] = CODEC_MAKE_F00_09(CODEC_F00_09_TYPE_AUDIO_INPUT, 0x4, 0) 515 524 | CODEC_F00_09_CAP_DIGITAL … … 534 543 | CODEC_F00_0C_CAP_IMPENDANCE_SENSE;//0x173f; 535 544 pNode->node.au32F02_param[0] = 0x2; 536 pNode->port.u32F07_param = 0xc0;//RT_BIT(6); 545 pNode->port.u32F07_param = CODEC_F07_IN_ENABLE 546 | CODEC_F07_OUT_ENABLE; 537 547 pNode->port.u32F08_param = 0; 538 548 if (!pState->fInReset) … … 554 564 | CODEC_F00_0C_CAP_IMPENDANCE_SENSE;//0x1737; 555 565 pNode->node.au32F02_param[0] = 0x4; 556 pNode->port.u32F07_param = RT_BIT(5);566 pNode->port.u32F07_param = CODEC_F07_IN_ENABLE; 557 567 if (!pState->fInReset) 558 568 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, … … 573 583 | CODEC_F00_0C_CAP_TRIGGER_REQUIRED 574 584 | CODEC_F00_0C_CAP_IMPENDANCE_SENSE;//0x1737; 575 pNode->port.u32F07_param = RT_BIT(5);585 pNode->port.u32F07_param = CODEC_F07_IN_ENABLE; 576 586 if (!pState->fInReset) 577 587 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, … … 590 600 | CODEC_F00_0C_CAP_TRIGGER_REQUIRED 591 601 | CODEC_F00_0C_CAP_IMPENDANCE_SENSE;//0x1737; 592 pNode->port.u32F07_param = RT_BIT(5);602 pNode->port.u32F07_param = CODEC_F07_IN_ENABLE; 593 603 pNode->node.au32F02_param[0] = 0x2; 594 604 if (!pState->fInReset) … … 617 627 | CODEC_F00_0C_CAP_OUTPUT 618 628 | CODEC_F00_0C_CAP_PRESENSE_DETECT;//0x34; 619 pNode->port.u32F07_param = RT_BIT(5);629 pNode->port.u32F07_param = CODEC_F07_IN_ENABLE; 620 630 pNode->port.u32F09_param = CODEC_MAKE_F09_ANALOG(0, CODEC_F09_ANALOG_NA);//0x7fffffff; 621 631 if (!pState->fInReset) … … 637 647 | CODEC_F00_0C_CAP_OUTPUT 638 648 | CODEC_F00_0C_CAP_PRESENSE_DETECT 639 | CODEC_F00_0C_CAP_TRIGGER_REQUIRED640 | CODEC_F00_0C_CAP_IMPENDANCE_SENSE ;//0x37;649 /* | CODEC_F00_0C_CAP_TRIGGER_REQUIRED 650 | CODEC_F00_0C_CAP_IMPENDANCE_SENSE */;//0x37; 641 651 pNode->node.au32F00_param[0xE] = CODEC_MAKE_F00_0E(0, 1);//0x1; 642 652 pNode->port.u32F08_param = 0; 643 pNode->port.u32F07_param = 0x40; 653 pNode->port.u32F07_param = CODEC_F07_OUT_ENABLE 654 | CODEC_F07_IN_ENABLE; 644 655 if (!pState->fInReset) 645 656 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 646 CODEC_F1C_LOCATION_ REAR,657 CODEC_F1C_LOCATION_INTERNAL, 647 658 CODEC_F1C_DEVICE_SPEAKER, 648 659 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, … … 660 671 pNode->node.au32F00_param[0xC] = CODEC_F00_0C_CAP_OUTPUT;//RT_BIT(4); 661 672 pNode->node.au32F00_param[0xE] = CODEC_MAKE_F00_0E(0, 0x3); 662 pNode->digout.u32F01_param = 0;663 673 pNode->node.au32F02_param[0] = RT_MAKE_U32_FROM_U8(0x08, 0x17, 0x19, 0); 664 pNode->digout.u32F07_param = 0;665 674 if (!pState->fInReset) 666 675 pNode->digout.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, … … 724 733 | CODEC_F00_09_CAP_LSB;//(4 << 20)|RT_BIT(0); 725 734 pNode->node.au32F00_param[0xc] = CODEC_F00_0C_CAP_INPUT;//RT_BIT(5); 726 pNode->cdnode.u32F07_param = 0;727 735 if (!pState->fInReset) 728 736 pNode->cdnode.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_FIXED, … … 783 791 pNode->node.au32F00_param[0xC] = CODEC_F00_0C_CAP_OUTPUT;//0x10; 784 792 pNode->node.au32F02_param[0] = 0x1a; 785 pNode->reserved.u32F07_param = 0;786 793 pNode->reserved.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_NO_PHYS, 787 794 CODEC_F1C_LOCATION_NA,
Note:
See TracChangeset
for help on using the changeset viewer.