aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-28 08:46:56 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-28 08:47:32 -0500
commit72222be39afbd39c16eb180646b0ac44bb1ba460 (patch)
tree664b09bdf2892ee187c0c525b03705898aab9388 /sound
parentd9dd4ada0edb96eaf3ba9b69fc2ffdd525ee7e0c (diff)
ASoC: wm8994: Use the same DCS codes for all WM1811 variants
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8994.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 97f550b0e28..ea504e24269 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -3876,20 +3876,8 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
3876 wm8994->hubs.no_cache_dac_hp_direct = true; 3876 wm8994->hubs.no_cache_dac_hp_direct = true;
3877 wm8994->fll_byp = true; 3877 wm8994->fll_byp = true;
3878 3878
3879 switch (control->cust_id) { 3879 wm8994->hubs.dcs_codes_l = -9;
3880 case 0: 3880 wm8994->hubs.dcs_codes_r = -7;
3881 case 2:
3882 wm8994->hubs.dcs_codes_l = -9;
3883 wm8994->hubs.dcs_codes_r = -7;
3884 break;
3885 case 1:
3886 case 3:
3887 wm8994->hubs.dcs_codes_l = -8;
3888 wm8994->hubs.dcs_codes_r = -7;
3889 break;
3890 default:
3891 break;
3892 }
3893 3881
3894 snd_soc_update_bits(codec, WM8994_ANALOGUE_HP_1, 3882 snd_soc_update_bits(codec, WM8994_ANALOGUE_HP_1,
3895 WM1811_HPOUT1_ATTN, WM1811_HPOUT1_ATTN); 3883 WM1811_HPOUT1_ATTN, WM1811_HPOUT1_ATTN);