summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-09-06 15:45:27 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-09-06 15:45:27 +0300
commiteaf1ebd625a0d554b278b44da89be40dcb80945b (patch)
tree2c68b884c9ea4700ac36ebce03b19555e153d1e0 /sound
parentad44961f8b3cf5ce342d234c7eca05d89369c26b (diff)
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 <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/sgtl5000.c2
1 files changed, 2 insertions, 0 deletions
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",