ASoC: Only restore non-default registers for WM8961
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 2 Jan 2010 13:14:45 +0000 (13:14 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Jan 2010 21:50:58 +0000 (21:50 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8961.c

index a8007d5..d2342c5 100644 (file)
@@ -1022,6 +1022,9 @@ static int wm8961_resume(struct platform_device *pdev)
        int i;
 
        for (i = 0; i < codec->reg_cache_size; i++) {
+               if (reg_cache[i] == wm8961_reg_defaults[i])
+                       continue;
+
                if (i == WM8961_SOFTWARE_RESET)
                        continue;