From 2e2c19cd75b7e4cf691ca208b6d3f2b629c4b157 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Sat, 2 Jan 2010 13:14:07 +0000 Subject: [PATCH] --- yaml --- r: 182812 b: refs/heads/master c: d11c5ab186310389b8e573be00279bab0a565d30 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/wm8731.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 398bcd27ebd4..5f426fa9214e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5baf831541c61546c00e8d6f294cb10ed5d25e7d +refs/heads/master: d11c5ab186310389b8e573be00279bab0a565d30 diff --git a/trunk/sound/soc/codecs/wm8731.c b/trunk/sound/soc/codecs/wm8731.c index 3a497810f939..5a2619dbf283 100644 --- a/trunk/sound/soc/codecs/wm8731.c +++ b/trunk/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);