projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cadee10
)
ASoC: sgtl5000: add ADC mute control
author
Oleksandr Suvorov
<oleksandr.suvorov@toradex.com>
Fri, 19 Jul 2019 10:05:34 +0000
(10:05 +0000)
committer
Mark Brown
<broonie@kernel.org>
Mon, 22 Jul 2019 12:26:26 +0000
(13:26 +0100)
This control mute/unmute the ADC input of SGTL5000
using its CHIP_ANA_CTRL register.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link:
https://lore.kernel.org/r/20190719100524.23300-5-oleksandr.suvorov@toradex.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sgtl5000.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/sgtl5000.c
b/sound/soc/codecs/sgtl5000.c
index 3f28e7862b5b01628dfc712d9386be8a73a6a5a9..b65232521ea8aae97e67fc0f1f54722c1cdae980 100644
(file)
--- a/
sound/soc/codecs/sgtl5000.c
+++ b/
sound/soc/codecs/sgtl5000.c
@@
-720,6
+720,7
@@
static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
SGTL5000_CHIP_ANA_ADC_CTRL,
8, 1, 0, capture_6db_attenuate),
SOC_SINGLE("Capture ZC Switch", SGTL5000_CHIP_ANA_CTRL, 1, 1, 0),
+ SOC_SINGLE("Capture Switch", SGTL5000_CHIP_ANA_CTRL, 0, 1, 1),
SOC_DOUBLE_TLV("Headphone Playback Volume",
SGTL5000_CHIP_ANA_HP_CTRL,