diff options
Diffstat (limited to 'sound/soc/codecs/wm8731.c')
-rw-r--r-- | sound/soc/codecs/wm8731.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 3a497810f939..5a2619dbf283 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c | |||
@@ -456,6 +456,9 @@ static int wm8731_resume(struct platform_device *pdev) | |||
456 | 456 | ||
457 | /* Sync reg_cache with the hardware */ | 457 | /* Sync reg_cache with the hardware */ |
458 | for (i = 0; i < ARRAY_SIZE(wm8731_reg); i++) { | 458 | for (i = 0; i < ARRAY_SIZE(wm8731_reg); i++) { |
459 | if (cache[i] == wm8731_reg[i]) | ||
460 | continue; | ||
461 | |||
459 | data[0] = (i << 1) | ((cache[i] >> 8) & 0x0001); | 462 | data[0] = (i << 1) | ((cache[i] >> 8) & 0x0001); |
460 | data[1] = cache[i] & 0x00ff; | 463 | data[1] = cache[i] & 0x00ff; |
461 | codec->hw_write(codec->control_data, data, 2); | 464 | codec->hw_write(codec->control_data, data, 2); |