ASoC: rt5682: change SAR voltage threshold
authorShuming Fan <shumingf@realtek.com>
Thu, 26 Nov 2020 09:27:59 +0000 (17:27 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 26 Nov 2020 13:06:18 +0000 (13:06 +0000)
To fix errors in some 4 poles headset detection cases,
this patch adjusts the voltage threshold for mic detection.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20201126092759.9427-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682.c

index a9acce7b6cca8a20175bdeaf5f40227ccc776b88..d9878173ff898870bc70aa8945c011de3a527b85 100644 (file)
@@ -43,6 +43,7 @@ static const struct reg_sequence patch_list[] = {
        {RT5682_DAC_ADC_DIG_VOL1, 0xa020},
        {RT5682_I2C_CTRL, 0x000f},
        {RT5682_PLL2_INTERNAL, 0x8266},
+       {RT5682_SAR_IL_CMD_3, 0x8365},
 };
 
 void rt5682_apply_patch_list(struct rt5682_priv *rt5682, struct device *dev)