Skip to content

Commit

Permalink
ASoC: max98373: Added 10ms sleep after amp software reset
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Ryan Lee authored and broonie committed Aug 28, 2018
1 parent 6f0a256 commit ca917f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/codecs/max98373.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ca917f9

Please sign in to comment.