Changeset 34005 in vbox
- Timestamp:
- Nov 11, 2010 6:34:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevCodec.cpp
r33829 r34005 81 81 /* Subordinate node count (7.3.4.3)*/ 82 82 #define CODEC_MAKE_F00_04(startNodeNumber, totalNodeNumber) ((((startNodeNumber) & 0xFF) << 16)|((totalNodeNumber) & 0xFF)) 83 /* 83 /* 84 84 * Function Group Type (7.3.4.4) 85 85 * 0 & [0x3-0x7f] are reserved types … … 255 255 /* HDA spec 7.3.3.31 defines layout of configuration registers/verbs (0xF1C) */ 256 256 /* Configuration's port connection */ 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) 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 */ … … 536 536 pNode->port.u32F08_param = 0; 537 537 if (!pState->fInReset) 538 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 539 CODEC_F1C_LOCATION_FRONT, 538 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 539 CODEC_F1C_LOCATION_FRONT, 540 540 CODEC_F1C_DEVICE_HP, 541 541 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, … … 575 575 if (!pState->fInReset) 576 576 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 577 CODEC_F1C_LOCATION_REAR, 577 CODEC_F1C_LOCATION_REAR, 578 578 CODEC_F1C_DEVICE_SPEAKER, 579 579 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 580 CODEC_F1C_COLOR_GREEN, 580 CODEC_F1C_COLOR_GREEN, 581 581 0x0, 0x1, 0x0);//RT_MAKE_U32_FROM_U8(0x10, 0x40, 0x11, 0x01); 582 582 goto port_init; … … 594 594 pNode->port.u32F1c_param = CODEC_MAKE_F1C(CODEC_F1C_PORT_COMPLEX, 595 595 CODEC_F1C_LOCATION_FRONT, 596 CODEC_F1C_DEVICE_MIC, 596 CODEC_F1C_DEVICE_MIC, 597 597 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 598 598 CODEC_F1C_COLOR_PINK, … … 645 645 CODEC_F1C_LOCATION_REAR, 646 646 CODEC_F1C_DEVICE_SPEAKER, 647 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 647 CODEC_F1C_CONNECTION_TYPE_1_8INCHES, 648 648 CODEC_F1C_COLOR_ORANGE, 649 649 0x0, 0x1, 0x2);//RT_MAKE_U32_FROM_U8(0x12, 0x60, 0x11, 0x01); … … 686 686 CODEC_F1C_DEVICE_SPDIF_IN, 687 687 CODEC_F1C_CONNECTION_TYPE_OTHER_DIGITAL, 688 CODEC_F1C_COLOR_BLACK, 688 CODEC_F1C_COLOR_BLACK, 689 689 0x0, 0x6, 0x0);//(0x1 << 24) | (0xc5 << 16) | (0x10 << 8) | 0x60; 690 690 break; … … 1816 1816 { 1817 1817 Assert(pu32F05_param); 1818 if ( pu32F05_param)1818 if (!pu32F05_param) 1819 1819 return; 1820 1820 bool fReset = CODEC_F05_IS_RESET(*pu32F05_param); … … 1852 1852 if (!pu32Reg) 1853 1853 return VINF_SUCCESS; 1854 1854 1855 1855 bool fReset = CODEC_F05_IS_RESET(*pu32Reg); 1856 1856 bool fStopOk = CODEC_F05_IS_STOPOK(*pu32Reg); … … 1859 1859 { 1860 1860 /* 1861 * We shouldn't propogate actual power state, which actual for AFG 1861 * We shouldn't propogate actual power state, which actual for AFG 1862 1862 */ 1863 1863 *pu32Reg = CODEC_MAKE_F05(fReset, fStopOk, 0, 1864 CODEC_F05_ACT(pState->pNodes[1].afg.u32F05_param), 1864 CODEC_F05_ACT(pState->pNodes[1].afg.u32F05_param), 1865 1865 CODEC_F05_SET(cmd)); 1866 1866 }
Note:
See TracChangeset
for help on using the changeset viewer.