ASoC: wm8994: Use the same DCS codes for all WM1811 variants
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Nov 2012 13:46:56 +0000 (13:46 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Nov 2012 13:47:32 +0000 (13:47 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm8994.c

index 97f550b0e289f294df558407918a3f67928af78d..ea504e24269f2b0e7262603580e21592bdb92278 100644 (file)
@@ -3876,20 +3876,8 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
                wm8994->hubs.no_cache_dac_hp_direct = true;
                wm8994->fll_byp = true;
 
-               switch (control->cust_id) {
-               case 0:
-               case 2:
-                       wm8994->hubs.dcs_codes_l = -9;
-                       wm8994->hubs.dcs_codes_r = -7;
-                       break;
-               case 1:
-               case 3:
-                       wm8994->hubs.dcs_codes_l = -8;
-                       wm8994->hubs.dcs_codes_r = -7;
-                       break;
-               default:
-                       break;
-               }
+               wm8994->hubs.dcs_codes_l = -9;
+               wm8994->hubs.dcs_codes_r = -7;
 
                snd_soc_update_bits(codec, WM8994_ANALOGUE_HP_1,
                                    WM1811_HPOUT1_ATTN, WM1811_HPOUT1_ATTN);