Re: [PATCH 6/7] ASoC: TWL4030: Add volume controls for outputs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 5, 2008 at 4:14 PM, Mark Brown <
broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> 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 :)
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux