From: Mark Brown Date: Thu, 29 Dec 2011 21:39:44 +0000 (+0000) Subject: ASoC: Use standard register cache sync for WM8955 X-Git-Tag: v3.4-rc1~88^2^2~91 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9887cb9e651da91c5bad2578d71e7ff8410e14b7;p=karo-tx-linux.git ASoC: Use standard register cache sync for WM8955 Signed-off-by: Mark Brown --- 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, return ret; } - /* Sync back cached values if they're - * different from the hardware default. - */ - for (i = 0; i < codec->driver->reg_cache_size; i++) { - if (i == WM8955_RESET) - continue; - - if (reg_cache[i] == wm8955_reg[i]) - continue; - - snd_soc_write(codec, i, reg_cache[i]); - } + snd_soc_cache_sync(codec); /* Enable VREF and VMID */ snd_soc_update_bits(codec, WM8955_POWER_MANAGEMENT_1,