From edcbb7e58a0b9f644c0b61dc6b806886abef7fcd Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Thu, 29 Dec 2011 21:39:44 +0000 Subject: [PATCH] --- yaml --- r: 293179 b: refs/heads/master c: 9887cb9e651da91c5bad2578d71e7ff8410e14b7 h: refs/heads/master i: 293177: bed2910fa5add0014efc73c8f4bb6ac4a0a10c83 293175: daa6d0128a4b9402d1b29228ba1db9e1f96e5a4c v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/wm8955.c | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/[refs] b/[refs] index d439848df543..3a2370c43ad2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ba5c88d02de255b51d399001115384f8847cb0df +refs/heads/master: 9887cb9e651da91c5bad2578d71e7ff8410e14b7 diff --git a/trunk/sound/soc/codecs/wm8955.c b/trunk/sound/soc/codecs/wm8955.c index cc6f6692bf5e..559c96b656a4 100644 --- a/trunk/sound/soc/codecs/wm8955.c +++ b/trunk/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,