From c8875d479089ddc2a38f162fcad88fc6e532310a Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Thu, 29 Dec 2011 21:07:04 +0000 Subject: [PATCH] --- yaml --- r: 293173 b: refs/heads/master c: 274eb8f9d8780903ccd40e007928f26c3a8c6e15 h: refs/heads/master i: 293171: f11afca22b157838d6347fbaeae0673b81cb4c7e v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/wm8904.c | 28 +--------------------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/[refs] b/[refs] index 7a11fd85bfa2..9c2630a338ef 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 93e26d4e44e65ef803ea35cfd0fe14fd8af49cb0 +refs/heads/master: 274eb8f9d8780903ccd40e007928f26c3a8c6e15 diff --git a/trunk/sound/soc/codecs/wm8904.c b/trunk/sound/soc/codecs/wm8904.c index 98d4f815b4a1..673a2fe585bc 100644 --- a/trunk/sound/soc/codecs/wm8904.c +++ b/trunk/sound/soc/codecs/wm8904.c @@ -2088,32 +2088,6 @@ static int wm8904_digital_mute(struct snd_soc_dai *codec_dai, int mute) return 0; } -static void wm8904_sync_cache(struct snd_soc_codec *codec) -{ - u16 *reg_cache = codec->reg_cache; - int i; - - if (!codec->cache_sync) - return; - - codec->cache_only = 0; - - /* Sync back cached values if they're different from the - * hardware default. - */ - for (i = 1; i < codec->driver->reg_cache_size; i++) { - if (!wm8904_access[i].writable) - continue; - - if (reg_cache[i] == wm8904_reg[i]) - continue; - - snd_soc_write(codec, i, reg_cache[i]); - } - - codec->cache_sync = 0; -} - static int wm8904_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) { @@ -2146,7 +2120,7 @@ static int wm8904_set_bias_level(struct snd_soc_codec *codec, return ret; } - wm8904_sync_cache(codec); + snd_soc_cache_sync(codec); /* Enable bias */ snd_soc_update_bits(codec, WM8904_BIAS_CONTROL_0,