diff options
author | Ashish Chavan <ashish.chavan@kpitcummins.com> | 2011-10-14 06:55:25 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-14 15:29:31 -0400 |
commit | 7a0e67b68701d73b2252bd73f7fd49c54aea1e58 (patch) | |
tree | 2af6b176a1a15d0c57b0b61b63b36d6b5fe12cc0 /sound | |
parent | f3aa7219b15c140fece2ec6b9240fccc3b7a5afd (diff) |
ASoC: da7210: bugfix for head phone volume control
This patch takes care of reserved bits of headphone volume
register by using correct volume range.
Signed-off-by: Ashish Chavan <ashish.chavan@kpitcummins.com>
Signed-off-by: David Dajun Chen <dchen@diasemi.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/da7210.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/codecs/da7210.c b/sound/soc/codecs/da7210.c index 3b5dc0d38dbb..902fa5861901 100644 --- a/sound/soc/codecs/da7210.c +++ b/sound/soc/codecs/da7210.c | |||
@@ -149,12 +149,14 @@ | |||
149 | * mute : 0x10 | 149 | * mute : 0x10 |
150 | * reserved : 0x00 - 0x0F | 150 | * reserved : 0x00 - 0x0F |
151 | * | 151 | * |
152 | * ** FIXME ** | ||
153 | * | ||
154 | * Reserved area are considered as "mute". | 152 | * Reserved area are considered as "mute". |
155 | * -> min = -79.5 dB | ||
156 | */ | 153 | */ |
157 | static const DECLARE_TLV_DB_SCALE(hp_out_tlv, -7950, 150, 1); | 154 | static const unsigned int hp_out_tlv[] = { |
155 | TLV_DB_RANGE_HEAD(2), | ||
156 | 0x0, 0x10, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1), | ||
157 | /* -54 dB to +15 dB */ | ||
158 | 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0), | ||
159 | }; | ||
158 | 160 | ||
159 | static const struct snd_kcontrol_new da7210_snd_controls[] = { | 161 | static const struct snd_kcontrol_new da7210_snd_controls[] = { |
160 | 162 | ||