projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d9036
)
ASoC: rt5682: Fix recording no sound issue
author
Shuming Fan
<shumingf@realtek.com>
Wed, 2 Jan 2019 09:18:56 +0000
(17:18 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 3 Jan 2019 16:33:23 +0000
(16:33 +0000)
The ADC mixer setting needs to restore to default value
after calibration.
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5682.c
b/sound/soc/codecs/rt5682.c
index 34cfaf8f6f3452b9839614a03c4b72c9cb82cd17..89c43b26c3790814645172e8165e1ac971972319 100644
(file)
--- 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);