[alsa-devel] [PATCH 6/7] ASoC: TWL4030: Add volume controls for outputs

naveen krishna ch naveenkrishna.ch at gmail.com
Fri Dec 5 12:17:36 CET 2008


On Fri, Dec 5, 2008 at 4:14 PM, Mark Brown <
broonie at opensource.wolfsonmicro.com> wrote:

> 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)

I am afraid But it dint help.
The desired affect is repeating itself between 0 to 60 range.



-- 
Thanks,

(: Naveen Krishna Ch :)


More information about the Alsa-devel mailing list