diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-02 13:14:23 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-04 21:50:43 (GMT) |
commit | e0fb28e079b50f891b6c9db1c2bb25fef3268cf4 (patch) | |
tree | 8b4326cac30da69d7431344f754b4ede7935d721 /sound/soc/codecs/wm8776.c | |
parent | d11c5ab186310389b8e573be00279bab0a565d30 (diff) | |
download | linux-fsl-qoriq-e0fb28e079b50f891b6c9db1c2bb25fef3268cf4.tar.xz |
ASoC: Only restore non-default registers for WM8776
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm8776.c')
-rw-r--r-- | sound/soc/codecs/wm8776.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8776.c b/sound/soc/codecs/wm8776.c index ab2c0da..44e7d9d 100644 --- a/sound/soc/codecs/wm8776.c +++ b/sound/soc/codecs/wm8776.c @@ -406,6 +406,8 @@ static int wm8776_resume(struct platform_device *pdev) /* Sync reg_cache with the hardware */ for (i = 0; i < ARRAY_SIZE(wm8776_reg); i++) { + if (cache[i] == wm8776_reg[i]) + continue; data[0] = (i << 1) | ((cache[i] >> 8) & 0x0001); data[1] = cache[i] & 0x00ff; codec->hw_write(codec->control_data, data, 2); |