summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-05-16 14:47:38 +0300
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2020-04-15 01:24:39 +0200
commit295a5f7ee427a616ae64f967f6ccf0d085b9554b (patch)
tree29c41a360adaff46ade49f9cbf6f5ec091924720 /sound
parent2dedf2a501653ac399fa56bfe15a94fd1061adba (diff)
ASoC: sgtl5000: Add on/off control for ADC Capture
- adding mute/unmute control for Capture block allows alsa-compatible sound recorders automatically unmute ADC block to record sound. Related to: #48500 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/sgtl5000.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 686fd84dc2bc..c2f0ba4ea30f 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -564,6 +564,9 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
SGTL5000_ADC_VOL_M6DB, 1, 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",