Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293168
b: refs/heads/master
c: e055cd6
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Jan 20, 2012
1 parent 3cffc65 commit 96575f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 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: c2562a8e3b5f871ad0b73caf98bb7541e8724efc
refs/heads/master: e055cd67fda76dd8efdcdd4038f5adfe0f8e85a0
20 changes: 1 addition & 19 deletions trunk/sound/soc/codecs/wm8804.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,24 +482,6 @@ static int wm8804_set_clkdiv(struct snd_soc_dai *dai,
return 0;
}

static void wm8804_sync_cache(struct snd_soc_codec *codec)
{
short i;
u8 *cache;

if (!codec->cache_sync)
return;

codec->cache_only = 0;
cache = codec->reg_cache;
for (i = 0; i < codec->driver->reg_cache_size; i++) {
if (i == WM8804_RST_DEVID1 || cache[i] == wm8804_reg_defs[i])
continue;
snd_soc_write(codec, i, cache[i]);
}
codec->cache_sync = 0;
}

static int wm8804_set_bias_level(struct snd_soc_codec *codec,
enum snd_soc_bias_level level)
{
Expand All @@ -524,7 +506,7 @@ static int wm8804_set_bias_level(struct snd_soc_codec *codec,
ret);
return ret;
}
wm8804_sync_cache(codec);
snd_soc_cache_sync(codec);
}
/* power down the OSC and the PLL */
snd_soc_update_bits(codec, WM8804_PWRDN, 0x9, 0x9);
Expand Down

0 comments on commit 96575f6

Please sign in to comment.