VirtualBox

Ignore:
Timestamp:
Oct 14, 2021 4:37:27 PM (3 years ago)
Author:
vboxsync
Message:

Audio/HDA: Check if the node ID is the one we use for controlling the line-in volume (see commit for details). oem2ticketref:53.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHdaCodec.cpp

    r90148 r91734  
    20962096            hdaCodecSetRegisterU8(&AMPLIFIER_REGISTER(*pAmplifier, AMPLIFIER_IN, AMPLIFIER_RIGHT, u8Index), uCmd, 0);
    20972097
    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)
    21002109            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
    21022117    }
    21032118    if (fIsOut)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette