Changeset 91734 in vbox for trunk/src/VBox/Devices/Audio/DevHdaCodec.cpp
- Timestamp:
- Oct 14, 2021 4:37:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHdaCodec.cpp
r90148 r91734 2096 2096 hdaCodecSetRegisterU8(&LIFIER_REGISTER(*pAmplifier, AMPLIFIER_IN, AMPLIFIER_RIGHT, u8Index), uCmd, 0); 2097 2097 2098 // if (CODEC_NID(uCmd) == pThis->Cfg.u8AdcVolsLineIn) 2099 // { 2098 /* 2099 * Check if the node ID is the one we use for controlling the line-in volume; 2100 * with STAC9220 this is connected to STAC9220_NID_AMP_ADC0 (ID 0x17). 2101 * 2102 * If we don't do this check here, some guests like newer Ubuntus mute mic-in 2103 * afterwards (connected to STAC9220_NID_AMP_ADC1 (ID 0x18)). This then would 2104 * also mute line-in, which breaks audio recording. 2105 * 2106 * See STAC9220 V1.0 01/08, p. 30 + oem2ticketref:53. 2107 */ 2108 if (CODEC_NID(uCmd) == pThis->Cfg.idxAdcVolsLineIn) 2100 2109 hdaR3CodecToAudVolume(pThis, pNode, pAmplifier, PDMAUDIOMIXERCTL_LINE_IN); 2101 // } 2110 2111 #ifdef VBOX_WITH_AUDIO_HDA_MIC_IN 2112 # error "Implement mic-in volume / mute setting." 2113 else if (CODEC_NID(uCmd) == pThis->Cfg.idxAdcVolsMicIn) 2114 hdaR3CodecToAudVolume(pThis, pNode, pAmplifier, PDMAUDIOMIXERCTL_MIC_IN); 2115 #endif 2116 2102 2117 } 2103 2118 if (fIsOut)
Note:
See TracChangeset
for help on using the changeset viewer.