ASoC: rt5663: Add the delay time to correct the calibration
authoroder_chiou@realtek.com <oder_chiou@realtek.com>
Tue, 1 Aug 2017 11:14:02 +0000 (19:14 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 Aug 2017 11:32:58 +0000 (12:32 +0100)
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>
sound/soc/codecs/rt5663.c

index 45f8a9888f7d8f69985dad874f2fde374c82a8ce..c1f0a72c0133136143efa94e6296d787c2035f07 100644 (file)
@@ -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);