diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-02 08:14:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-04 16:50:23 -0500 |
commit | d11c5ab186310389b8e573be00279bab0a565d30 (patch) | |
tree | 597d6dbf03887e131b839bd4bb8556eb5b95e132 /sound/soc/codecs/wm8731.c | |
parent | 5baf831541c61546c00e8d6f294cb10ed5d25e7d (diff) |
ASoC: Only restore non-default registers for WM8731
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
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); |