提交 72222be3 编写于 作者: M Mark Brown

ASoC: wm8994: Use the same DCS codes for all WM1811 variants

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
上级 d9dd4ada
...@@ -3876,20 +3876,8 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec) ...@@ -3876,20 +3876,8 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
wm8994->hubs.no_cache_dac_hp_direct = true; wm8994->hubs.no_cache_dac_hp_direct = true;
wm8994->fll_byp = true; wm8994->fll_byp = true;
switch (control->cust_id) { wm8994->hubs.dcs_codes_l = -9;
case 0: wm8994->hubs.dcs_codes_r = -7;
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;
}
snd_soc_update_bits(codec, WM8994_ANALOGUE_HP_1, snd_soc_update_bits(codec, WM8994_ANALOGUE_HP_1,
WM1811_HPOUT1_ATTN, WM1811_HPOUT1_ATTN); WM1811_HPOUT1_ATTN, WM1811_HPOUT1_ATTN);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册