From eaf1ebd625a0d554b278b44da89be40dcb80945b Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Fri, 6 Sep 2019 15:45:27 +0300 Subject: ASoC: sgtl5000: Add ADC switch control This makes able to switch ADC on automatically when recording starts. Commit 6b01f0b022a (Fix enabling ZCD for HP and ADC) fixes initial setting of SGTL5000_CHIP_ANA_CTRL, keeping muted HP, DAC and ADC blocks on probing device. HP and DAC mute issue was fixed with 60f67ac489 (Add on/off control for HP/LINE out). This commit fixes ADC mute issue in the same manner as HP/DAC. Signed-off-by: Oleksandr Suvorov --- sound/soc/codecs/sgtl5000.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index f0d41af41af4..3cdbb2c80461 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -553,6 +553,8 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = { 8, 2, 0, capture_6db_attenuate), SOC_SINGLE("Capture ZC Switch", SGTL5000_CHIP_ANA_CTRL, SGTL5000_ADC_ZCD_EN, 1, 0), + SOC_SINGLE("Capture Switch", SGTL5000_CHIP_ANA_CTRL, + SGTL5000_ADC_MUTE_SHIFT, 1, 1), /* Headphone */ SOC_DOUBLE_TLV("Headphone Playback Volume", -- cgit v1.2.3