From a7cd234cfebec8d21a51dfbcd6806378f73f65fb Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Tue, 18 Apr 2017 12:09:25 +0200 Subject: [PATCH] codecs: rt5659: Revert back to M calibration Change-Id: Iae98fd7f298b906ced14379af72411e199b65758 --- sound/soc/codecs/rt5659.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sound/soc/codecs/rt5659.c b/sound/soc/codecs/rt5659.c index 3b350674bc04..a79df995b47f 100644 --- a/sound/soc/codecs/rt5659.c +++ b/sound/soc/codecs/rt5659.c @@ -5184,9 +5184,6 @@ void rt5659_calibrate(struct rt5659_priv *rt5659) mutex_lock(&rt5659->calibrate_mutex); - regcache_cache_bypass(rt5659->regmap, true); - regmap_write(rt5659->regmap, RT5659_RESET, 0); - /* Calibrate HPO Start */ /* Fine tune HP Performance */ regmap_write(rt5659->regmap, RT5659_BIAS_CUR_CTRL_8, 0xa502); @@ -5380,14 +5377,6 @@ void rt5659_calibrate(struct rt5659_priv *rt5659) regmap_write(rt5659->regmap, RT5659_HP_VOL, 0x8080); regmap_write(rt5659->regmap, RT5659_HP_CHARGE_PUMP_1, 0x0c16); - regmap_write(rt5659->regmap, RT5659_RESET, 0); - regcache_cache_bypass(rt5659->regmap, false); - regcache_mark_dirty(rt5659->regmap); - regcache_sync(rt5659->regmap); - - /* Recovery the volatile values */ - regmap_write(rt5659->regmap, RT5659_MONO_NG2_CTRL_5, 0x0009); - mutex_unlock(&rt5659->calibrate_mutex); }