summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5663.c
diff options
context:
space:
mode:
authoroder_chiou@realtek.com <oder_chiou@realtek.com>2017-08-01 19:14:02 +0800
committerMark Brown <broonie@kernel.org>2017-08-01 12:32:58 +0100
commitc1bbaff6d7dd55314ee453df8dfe00befd7ce1b2 (patch)
treeca7729903fe52579a7b224353e94d98aef9982ea /sound/soc/codecs/rt5663.c
parent1d5c5b6582cf829fc4c0c8eef6b9f9f0dc29c7b2 (diff)
downloadlinux-c1bbaff6d7dd55314ee453df8dfe00befd7ce1b2.tar.bz2
ASoC: rt5663: Add the delay time to correct the calibration
The patch adds the delay time to correct the calibration. Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5663.c')
-rw-r--r--sound/soc/codecs/rt5663.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5663.c b/sound/soc/codecs/rt5663.c
index 45f8a9888f7d..c1f0a72c0133 100644
--- a/sound/soc/codecs/rt5663.c
+++ b/sound/soc/codecs/rt5663.c
@@ -3058,6 +3058,7 @@ static void rt5663_calibrate(struct rt5663_priv *rt5663)
regmap_write(rt5663->regmap, RT5663_PWR_ANLG_3, 0x018c);
regmap_write(rt5663->regmap, RT5663_HP_CHARGE_PUMP_1, 0x1e32);
regmap_write(rt5663->regmap, RT5663_DACREF_LDO, 0x3b0b);
+ msleep(40);
regmap_write(rt5663->regmap, RT5663_STO_DAC_MIXER, 0x0000);
regmap_write(rt5663->regmap, RT5663_BYPASS_STO_DAC, 0x000c);
regmap_write(rt5663->regmap, RT5663_HP_BIAS, 0xafaa);