Skip to content

Commit

Permalink
ASoC: Only restore non-default registers for WM8961
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Mark Brown committed Jan 4, 2010
1 parent e0fb28e commit 1050563
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/codecs/wm8961.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,9 @@ static int wm8961_resume(struct platform_device *pdev)
int i;

for (i = 0; i < codec->reg_cache_size; i++) {
if (reg_cache[i] == wm8961_reg_defaults[i])
continue;

if (i == WM8961_SOFTWARE_RESET)
continue;

Expand Down

0 comments on commit 1050563

Please sign in to comment.