Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293218
b: refs/heads/master
c: 9f8cbae
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Jan 21, 2012
1 parent 27ea917 commit de5ecf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 8b71d441f75d180d3174b2e1b649db385552c266
refs/heads/master: 9f8cbae4163ab132cd7a56385341efdd41fcd429
9 changes: 4 additions & 5 deletions trunk/sound/soc/codecs/wm8985.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,6 @@ static int wm8985_probe(struct snd_soc_codec *codec)
size_t i;
struct wm8985_priv *wm8985;
int ret;
u16 *cache;

wm8985 = snd_soc_codec_get_drvdata(codec);

Expand Down Expand Up @@ -979,13 +978,13 @@ static int wm8985_probe(struct snd_soc_codec *codec)
goto err_reg_enable;
}

cache = codec->reg_cache;
/* latch volume update bits */
for (i = 0; i < ARRAY_SIZE(volume_update_regs); ++i)
cache[volume_update_regs[i]] |= 0x100;
snd_soc_update_bits(codec, volume_update_regs[i],
0x100, 0x100);
/* enable BIASCUT */
cache[WM8985_BIAS_CTRL] |= WM8985_BIASCUT;
codec->cache_sync = 1;
snd_soc_update_bits(codec, WM8985_BIAS_CTRL, WM8985_BIASCUT,
WM8985_BIASCUT);

wm8985_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
return 0;
Expand Down

0 comments on commit de5ecf4

Please sign in to comment.