projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f091f3f
)
ASoC: sgtl5000: fix buggy 'Capture Attenuate Switch' control
author
Lothar Waßmann
<LW@KARO-electronics.de>
Wed, 31 Jul 2013 14:44:30 +0000
(16:44 +0200)
committer
Mark Brown
<broonie@linaro.org>
Thu, 1 Aug 2013 13:48:20 +0000
(14:48 +0100)
The SGTL5000 Capture Attenuate Switch (or "ADC Volume Range Reduction"
as it is called in the manual) is single bit only.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sgtl5000.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/sgtl5000.c
b/sound/soc/codecs/sgtl5000.c
index 9303c7d011b2e29759d4dd94dd8a70604c60c3c2..760e8bfeacaadef370eb0ce30e1ce5ad124da295 100644
(file)
--- a/
sound/soc/codecs/sgtl5000.c
+++ b/
sound/soc/codecs/sgtl5000.c
@@
-398,7
+398,7
@@
static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
SOC_DOUBLE("Capture Volume", SGTL5000_CHIP_ANA_ADC_CTRL, 0, 4, 0xf, 0),
SOC_SINGLE_TLV("Capture Attenuate Switch (-6dB)",
SGTL5000_CHIP_ANA_ADC_CTRL,
- 8,
2
, 0, capture_6db_attenuate),
+ 8,
1
, 0, capture_6db_attenuate),
SOC_SINGLE("Capture ZC Switch", SGTL5000_CHIP_ANA_CTRL, 1, 1, 0),
SOC_DOUBLE_TLV("Headphone Playback Volume",