[alsa-devel] [PATCH 6/7] ASoC: TWL4030: Add volume controls for outputs
Mark Brown
broonie at opensource.wolfsonmicro.com
Fri Dec 5 11:44:53 CET 2008
On Fri, Dec 05, 2008 at 10:14:35AM +0530, naveen krishna ch wrote:
> The min and max values are from 0 to 209 and they r repeating for every 4
> steps
> Can any one explain this
Does this patch help?
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 3c9fdf2..afda2fc 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -223,7 +223,7 @@ static void twl4030_init_chip(struct snd_soc_codec *codec)
.put = snd_soc_put_volsw_r2_twl4030, \
.private_value = (unsigned long)&(struct soc_mixer_control) \
{.reg = reg_left, .rreg = reg_right, .shift = xshift, \
- .max = xmax, .invert = xinvert} }
+ .rshift = xshift, .max = xmax, .invert = xinvert} }
#define SOC_SINGLE_TLV_TWL4030(xname, xreg, xshift, xmax, xinvert, tlv_array) \
SOC_DOUBLE_TLV_TWL4030(xname, xreg, xshift, xshift, xmax, \
xinvert, tlv_array)
More information about the Alsa-devel
mailing list