Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293154
b: refs/heads/master
c: f98692e
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Jan 20, 2012
1 parent b85588f commit 5a536ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: 623105dc97010f851f8fd22b7ce80b77d860b5f4
refs/heads/master: f98692ea6dda68c7eda6d53a3bc850702c3b8fde
9 changes: 1 addition & 8 deletions trunk/sound/soc/codecs/wm8978.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,16 +891,9 @@ static int wm8978_suspend(struct snd_soc_codec *codec)
static int wm8978_resume(struct snd_soc_codec *codec)
{
struct wm8978_priv *wm8978 = snd_soc_codec_get_drvdata(codec);
int i;
u16 *cache = codec->reg_cache;

/* Sync reg_cache with the hardware */
for (i = 0; i < ARRAY_SIZE(wm8978_reg); i++) {
if (i == WM8978_RESET)
continue;
if (cache[i] != wm8978_reg[i])
snd_soc_write(codec, i, cache[i]);
}
snd_soc_cache_sync(codec);

wm8978_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

Expand Down

0 comments on commit 5a536ef

Please sign in to comment.