mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-02 23:30:04 +00:00
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>
This commit is contained in:
parent
6f0a256253
commit
ca917f9fe1
@ -730,6 +730,7 @@ static int max98373_probe(struct snd_soc_component *component)
|
|||||||
/* Software Reset */
|
/* Software Reset */
|
||||||
regmap_write(max98373->regmap,
|
regmap_write(max98373->regmap,
|
||||||
MAX98373_R2000_SW_RESET, MAX98373_SOFT_RESET);
|
MAX98373_R2000_SW_RESET, MAX98373_SOFT_RESET);
|
||||||
|
usleep_range(10000, 11000);
|
||||||
|
|
||||||
/* IV default slot configuration */
|
/* IV default slot configuration */
|
||||||
regmap_write(max98373->regmap,
|
regmap_write(max98373->regmap,
|
||||||
@ -818,6 +819,7 @@ static int max98373_resume(struct device *dev)
|
|||||||
|
|
||||||
regmap_write(max98373->regmap,
|
regmap_write(max98373->regmap,
|
||||||
MAX98373_R2000_SW_RESET, MAX98373_SOFT_RESET);
|
MAX98373_R2000_SW_RESET, MAX98373_SOFT_RESET);
|
||||||
|
usleep_range(10000, 11000);
|
||||||
regcache_cache_only(max98373->regmap, false);
|
regcache_cache_only(max98373->regmap, false);
|
||||||
regcache_sync(max98373->regmap);
|
regcache_sync(max98373->regmap);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user