From: Shuming Fan Date: Wed, 2 Jan 2019 09:18:56 +0000 (+0800) Subject: ASoC: rt5682: Fix recording no sound issue X-Git-Tag: v5.0-rc4~26^2~1^2~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=22c7d5e7bad1fb2d8b9c611acb55a389f5d848d8;p=users%2Fjedix%2Flinux-maple.git ASoC: rt5682: Fix recording no sound issue The ADC mixer setting needs to restore to default value after calibration. Signed-off-by: Shuming Fan Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 34cfaf8f6f34..89c43b26c379 100644 --- a/sound/soc/codecs/rt5682.c +++ b/sound/soc/codecs/rt5682.c @@ -2512,6 +2512,7 @@ static void rt5682_calibrate(struct rt5682_priv *rt5682) regmap_write(rt5682->regmap, RT5682_PWR_DIG_1, 0x0000); regmap_write(rt5682->regmap, RT5682_CHOP_DAC, 0x2000); regmap_write(rt5682->regmap, RT5682_CALIB_ADC_CTRL, 0x2005); + regmap_write(rt5682->regmap, RT5682_STO1_ADC_MIXER, 0xc0c4); mutex_unlock(&rt5682->calibrate_mutex);