summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorRyan Lee <ryans.lee@maximintegrated.com>2018-08-23 18:37:08 -0700
committerMark Brown <broonie@kernel.org>2018-08-28 20:02:01 +0100
commitca917f9fe1a0fab3dde41bba4bbd173c5a3c5805 (patch)
treefdd628b7bba64e3c836f2a80b65750d59a2ff615 /sound/soc
parent6f0a256253f48095ba2e5bcdfbed41f21643c105 (diff)
downloadblackbird-op-linux-ca917f9fe1a0fab3dde41bba4bbd173c5a3c5805.tar.gz
blackbird-op-linux-ca917f9fe1a0fab3dde41bba4bbd173c5a3c5805.zip
ASoC: max98373: Added 10ms sleep after amp software reset
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/max98373.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c
index 2764fae69333..1093f766d0d2 100644
--- a/sound/soc/codecs/max98373.c
+++ b/sound/soc/codecs/max98373.c
@@ -730,6 +730,7 @@ static int max98373_probe(struct snd_soc_component *component)
/* Software Reset */
regmap_write(max98373->regmap,
MAX98373_R2000_SW_RESET, MAX98373_SOFT_RESET);
+ usleep_range(10000, 11000);
/* IV default slot configuration */
regmap_write(max98373->regmap,
@@ -818,6 +819,7 @@ static int max98373_resume(struct device *dev)
regmap_write(max98373->regmap,
MAX98373_R2000_SW_RESET, MAX98373_SOFT_RESET);
+ usleep_range(10000, 11000);
regcache_cache_only(max98373->regmap, false);
regcache_sync(max98373->regmap);
return 0;
OpenPOWER on IntegriCloud