ASoC: max98373: Added 10ms sleep after amp software reset
authorRyan Lee <ryans.lee@maximintegrated.com>
Fri, 24 Aug 2018 01:37:08 +0000 (18:37 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 28 Aug 2018 19:02:01 +0000 (20:02 +0100)
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98373.c

index 2764fae693338655abe26d00e3185464685e845b..1093f766d0d2c73fe647bac2449c7ac06d069ecd 100644 (file)
@@ -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;