Skip to content

Commit

Permalink
ASoC: twl6040: Use correct offset for LineInAmp Right
Browse files Browse the repository at this point in the history
Gain for LineInAmp Right uses LINEGAIN[5:3], which means that
offset for right channel should be 4.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Misael Lopez Cruz authored and Liam Girdwood committed Dec 14, 2010
1 parent 9020808 commit 53a9ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ static const struct snd_kcontrol_new twl6040_snd_controls[] = {

/* AFM gains */
SOC_DOUBLE_TLV("Aux FM Volume",
TWL6040_REG_LINEGAIN, 0, 5, 0xF, 0, afm_amp_tlv),
TWL6040_REG_LINEGAIN, 0, 4, 0xF, 0, afm_amp_tlv),

/* Playback gains */
SOC_DOUBLE_TLV("Headset Playback Volume",
Expand Down

0 comments on commit 53a9ef1

Please sign in to comment.