diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-29 16:39:44 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-20 08:58:25 -0500 |
commit | 9887cb9e651da91c5bad2578d71e7ff8410e14b7 (patch) | |
tree | 422daa9f2246b7763ae84041f4fb89042fee4bff | |
parent | ba5c88d02de255b51d399001115384f8847cb0df (diff) |
ASoC: Use standard register cache sync for WM8955
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/wm8955.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c index cc6f6692bf5e..559c96b656a4 100644 --- a/sound/soc/codecs/wm8955.c +++ b/sound/soc/codecs/wm8955.c | |||
@@ -795,18 +795,7 @@ static int wm8955_set_bias_level(struct snd_soc_codec *codec, | |||
795 | return ret; | 795 | return ret; |
796 | } | 796 | } |
797 | 797 | ||
798 | /* Sync back cached values if they're | 798 | snd_soc_cache_sync(codec); |
799 | * different from the hardware default. | ||
800 | */ | ||
801 | for (i = 0; i < codec->driver->reg_cache_size; i++) { | ||
802 | if (i == WM8955_RESET) | ||
803 | continue; | ||
804 | |||
805 | if (reg_cache[i] == wm8955_reg[i]) | ||
806 | continue; | ||
807 | |||
808 | snd_soc_write(codec, i, reg_cache[i]); | ||
809 | } | ||
810 | 799 | ||
811 | /* Enable VREF and VMID */ | 800 | /* Enable VREF and VMID */ |
812 | snd_soc_update_bits(codec, WM8955_POWER_MANAGEMENT_1, | 801 | snd_soc_update_bits(codec, WM8955_POWER_MANAGEMENT_1, |