Skip to contentSkip to conversation

ASoC: max98373: Added 10ms sleep after amp software reset

PATCH In review Ryan Lee 2 participants 2 messages Aug 24, 2018 – Aug 28, 2018

Subsystems (2)
lore
Share & tools
lore

Ryan Lee

author
#0 lore raw

PATCH v2 1/1 ASoC: max98373: Added 10ms sleep after amp software reset

---
Changes since v1 : Applied usleep_range intead of using mdelay

Changes : Applied 10ms delay after amp software reset.
10ms guard time is required for stability.

 sound/soc/codecs/max98373.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/codecs/max98373.c +2 -0
index 2764fae..6aaff03 100644
@@ -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;
Signature · 1 line
2.7.4
maintainer
#1 lore raw

Applied "ASoC: max98373: Added 10ms sleep after amp software reset" to the asoc tree

The patch

ASoC: max98373: Added 10ms sleep after amp software reset

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From ca917f9fe1a0fab3dde41bba4bbd173c5a3c5805 Mon Sep 17 00:00:00 2001

From: Ryan Lee <[email protected]>
Date: Thu, 23 Aug 2018 18:37:08 -0700
Subject: [PATCH] ASoC: max98373: Added 10ms sleep after amp software reset

---
 sound/soc/codecs/max98373.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/codecs/max98373.c +2 -0
index 2764fae69333..1093f766d0d2 100644
@@ -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;
Signature · 1 line
2.18.0