Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293217
b: refs/heads/master
c: 8b71d44
h: refs/heads/master
i:
  293215: 45789d1
v: v3
  • Loading branch information
Mark Brown committed Jan 21, 2012
1 parent 5b56d19 commit 27ea917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb8f7693df0426b3c7aa6e6e401486962a033d5e
refs/heads/master: 8b71d441f75d180d3174b2e1b649db385552c266
21 changes: 1 addition & 20 deletions trunk/sound/soc/codecs/wm8985.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,25 +834,6 @@ static int wm8985_set_sysclk(struct snd_soc_dai *dai,
return 0;
}

static void wm8985_sync_cache(struct snd_soc_codec *codec)
{
short i;
u16 *cache;

if (!codec->cache_sync)
return;
codec->cache_only = 0;
/* restore cache */
cache = codec->reg_cache;
for (i = 0; i < codec->driver->reg_cache_size; i++) {
if (i == WM8985_SOFTWARE_RESET
|| cache[i] == wm8985_reg_defs[i])
continue;
snd_soc_write(codec, i, cache[i]);
}
codec->cache_sync = 0;
}

static int wm8985_set_bias_level(struct snd_soc_codec *codec,
enum snd_soc_bias_level level)
{
Expand All @@ -879,7 +860,7 @@ static int wm8985_set_bias_level(struct snd_soc_codec *codec,
return ret;
}

wm8985_sync_cache(codec);
snd_soc_cache_sync(codec);

/* enable anti-pop features */
snd_soc_update_bits(codec, WM8985_OUT4_TO_ADC,
Expand Down

0 comments on commit 27ea917

Please sign in to comment.