diff options
author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2008-11-14 01:57:28 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-17 06:02:21 -0500 |
commit | 6e5d9db271ab57789b09bcc61083ab71b7eabea9 (patch) | |
tree | f43f57951fc7a3880d9dfa74a8e13e8f9d285365 | |
parent | 71cfc9028d762419ce4dea62b4afc9c32c4b4820 (diff) |
ASoC: Fix for master playback/capture volume range for TWL4030 codec
FGAIN for playback is in range of 0-0x3f, while for capture GAIN it
is in the range of 0-0x1f.
The original value of 128 (0x7f) would modify the CGAIN also for
playback.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/twl4030.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index c1893d23703d..c778eb446a5b 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
@@ -192,10 +192,10 @@ static void twl4030_init_chip(struct snd_soc_codec *codec) | |||
192 | static const struct snd_kcontrol_new twl4030_snd_controls[] = { | 192 | static const struct snd_kcontrol_new twl4030_snd_controls[] = { |
193 | SOC_DOUBLE_R("Master Playback Volume", | 193 | SOC_DOUBLE_R("Master Playback Volume", |
194 | TWL4030_REG_ARXL2PGA, TWL4030_REG_ARXR2PGA, | 194 | TWL4030_REG_ARXL2PGA, TWL4030_REG_ARXR2PGA, |
195 | 0, 127, 0), | 195 | 0, 0x3f, 0), |
196 | SOC_DOUBLE_R("Capture Volume", | 196 | SOC_DOUBLE_R("Capture Volume", |
197 | TWL4030_REG_ATXL1PGA, TWL4030_REG_ATXR1PGA, | 197 | TWL4030_REG_ATXL1PGA, TWL4030_REG_ATXR1PGA, |
198 | 0, 127, 0), | 198 | 0, 0x1f, 0), |
199 | }; | 199 | }; |
200 | 200 | ||
201 | /* add non dapm controls */ | 201 | /* add non dapm controls */ |