Skip to content

Commit

Permalink
ASoC: twl6040 - fix LINEGAIN volume control
Browse files Browse the repository at this point in the history
Fix the TWL6040 LINEGAIN volume control to match the TRM.

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
  • Loading branch information
Liam Girdwood committed May 13, 2011
1 parent 3be79d1 commit 1f71a3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,9 @@ static DECLARE_TLV_DB_SCALE(mic_amp_tlv, -600, 600, 0);

/*
* AFMGAIN volume control:
* from 18 to 24 dB in 6 dB steps
* from -18 to 24 dB in 6 dB steps
*/
static DECLARE_TLV_DB_SCALE(afm_amp_tlv, 1800, 600, 0);
static DECLARE_TLV_DB_SCALE(afm_amp_tlv, -1800, 600, 0);

/*
* HSGAIN volume control:
Expand Down Expand Up @@ -1049,7 +1049,7 @@ static const struct snd_kcontrol_new twl6040_snd_controls[] = {

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

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

0 comments on commit 1f71a3b

Please sign in to comment.