Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4dd7678 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: wm8962: Redo early init of the part on resume



Ensure robust startup of the part by going through the reset procedure
prior to resyncing the full register cache, avoiding potential intermittent
faults in some designs.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
parent b761c0ca
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -3725,6 +3725,9 @@ static int wm8962_runtime_resume(struct device *dev)
	}
	}


	regcache_cache_only(wm8962->regmap, false);
	regcache_cache_only(wm8962->regmap, false);

	wm8962_reset(wm8962);

	regcache_sync(wm8962->regmap);
	regcache_sync(wm8962->regmap);


	regmap_update_bits(wm8962->regmap, WM8962_ANTI_POP,
	regmap_update_bits(wm8962->regmap, WM8962_ANTI_POP,