Skip to content

Commit

Permalink
ASoC: wm8962: Redo early init of the part on resume
Browse files Browse the repository at this point in the history
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Mark Brown committed Jul 12, 2012
1 parent b761c0c commit e4dd767
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -3725,6 +3725,9 @@ static int wm8962_runtime_resume(struct device *dev)
}

regcache_cache_only(wm8962->regmap, false);

wm8962_reset(wm8962);

regcache_sync(wm8962->regmap);

regmap_update_bits(wm8962->regmap, WM8962_ANTI_POP,
Expand Down

0 comments on commit e4dd767

Please sign in to comment.