diff options
Diffstat (limited to 'sound/soc/codecs/wm8776.c')
| -rw-r--r-- | sound/soc/codecs/wm8776.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8776.c b/sound/soc/codecs/wm8776.c index ab2c0da18091..44e7d9d82f87 100644 --- a/sound/soc/codecs/wm8776.c +++ b/sound/soc/codecs/wm8776.c | |||
| @@ -406,6 +406,8 @@ static int wm8776_resume(struct platform_device *pdev) | |||
| 406 | 406 | ||
| 407 | /* Sync reg_cache with the hardware */ | 407 | /* Sync reg_cache with the hardware */ |
| 408 | for (i = 0; i < ARRAY_SIZE(wm8776_reg); i++) { | 408 | for (i = 0; i < ARRAY_SIZE(wm8776_reg); i++) { |
| 409 | if (cache[i] == wm8776_reg[i]) | ||
| 410 | continue; | ||
| 409 | data[0] = (i << 1) | ((cache[i] >> 8) & 0x0001); | 411 | data[0] = (i << 1) | ((cache[i] >> 8) & 0x0001); |
| 410 | data[1] = cache[i] & 0x00ff; | 412 | data[1] = cache[i] & 0x00ff; |
| 411 | codec->hw_write(codec->control_data, data, 2); | 413 | codec->hw_write(codec->control_data, data, 2); |
