Skip to content

Commit

Permalink
ASoC: Avoid writing to WM8971_RESET in wm8971_resume
Browse files Browse the repository at this point in the history
Writing to WM8971_RESET resets all registers to the default state.
Thus we should avoid writing to WM8971_RESET on resume.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Oct 4, 2011
1 parent 5d224e8 commit 1a3bbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8971.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ static int wm8971_resume(struct snd_soc_codec *codec)

/* Sync reg_cache with the hardware */
for (i = 0; i < ARRAY_SIZE(wm8971_reg); i++) {
if (i + 1 == WM8971_RESET)
if (i == WM8971_RESET)
continue;
data[0] = (i << 1) | ((cache[i] >> 8) & 0x0001);
data[1] = cache[i] & 0x00ff;
Expand Down

0 comments on commit 1a3bbb4

Please sign in to comment.