diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-03-01 12:38:59 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-01 12:38:59 +0100 |
commit | 6679ee1870f7ccdd48e2e5c57919240b8f19a6dc (patch) | |
tree | 225ed7efcc0bb7e3c90233576c6106538e17a275 /sound/soc/codecs/wm8731.c | |
parent | a91a4aa1ee994abeb2190a1bb2f703933609a703 (diff) | |
parent | a0b62329bb290c10d7278809af910ed115768991 (diff) | |
download | linux-6679ee1870f7ccdd48e2e5c57919240b8f19a6dc.tar.gz |
Merge branch 'topic/asoc' into for-linus
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) /* Sync reg_cache with the hardware */ for (i = 0; i < ARRAY_SIZE(wm8731_reg); i++) { + if (cache[i] == wm8731_reg[i]) + continue; + data[0] = (i << 1) | ((cache[i] >> 8) & 0x0001); data[1] = cache[i] & 0x00ff; codec->hw_write(codec->control_data, data, 2); |