Skip to content

Commit

Permalink
ASoC: wm8994: Use the same DCS codes for all WM1811 variants
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Mark Brown committed Nov 28, 2012
1 parent d9dd4ad commit 72222be
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 72222be

Please sign in to comment.