diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-02 08:14:45 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-04 16:50:58 -0500 |
commit | 10505634bfa74871118a21eef8617acad00e4019 (patch) | |
tree | fff3fc50ce21730f3ba679713892478d5c52ffae | |
parent | e0fb28e079b50f891b6c9db1c2bb25fef3268cf4 (diff) |
ASoC: Only restore non-default registers for WM8961
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r-- | sound/soc/codecs/wm8961.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c index a8007d58813f..d2342c5e0425 100644 --- a/sound/soc/codecs/wm8961.c +++ b/sound/soc/codecs/wm8961.c | |||
@@ -1022,6 +1022,9 @@ static int wm8961_resume(struct platform_device *pdev) | |||
1022 | int i; | 1022 | int i; |
1023 | 1023 | ||
1024 | for (i = 0; i < codec->reg_cache_size; i++) { | 1024 | for (i = 0; i < codec->reg_cache_size; i++) { |
1025 | if (reg_cache[i] == wm8961_reg_defaults[i]) | ||
1026 | continue; | ||
1027 | |||
1025 | if (i == WM8961_SOFTWARE_RESET) | 1028 | if (i == WM8961_SOFTWARE_RESET) |
1026 | continue; | 1029 | continue; |
1027 | 1030 | ||