Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120312
b: refs/heads/master
c: 3b1228a
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Dec 10, 2008
1 parent 9a387c5 commit c8bb07c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: d58d5d5567ea9483346f57c83a94ce05992cd47c
refs/heads/master: 3b1228abc93f7ab0aa28c46341d6a0f7e2cade70
9 changes: 6 additions & 3 deletions trunk/sound/soc/codecs/wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,9 @@ static int wm8903_set_bias_level(struct snd_soc_codec *codec,

case SND_SOC_BIAS_STANDBY:
if (codec->bias_level == SND_SOC_BIAS_OFF) {
wm8903_write(codec, WM8903_CLOCK_RATES_2,
WM8903_CLK_SYS_ENA);

wm8903_run_sequence(codec, 0);
wm8903_sync_reg_cache(codec, codec->reg_cache);

Expand Down Expand Up @@ -1027,6 +1030,9 @@ static int wm8903_set_bias_level(struct snd_soc_codec *codec,

case SND_SOC_BIAS_OFF:
wm8903_run_sequence(codec, 32);
reg = wm8903_read(codec, WM8903_CLOCK_RATES_2);
reg &= ~WM8903_CLK_SYS_ENA;
wm8903_write(codec, WM8903_CLOCK_RATES_2, reg);
break;
}

Expand Down Expand Up @@ -1619,9 +1625,6 @@ static int wm8903_i2c_probe(struct i2c_client *i2c,

wm8903_reset(codec);

/* SYSCLK is required for pretty much anything */
wm8903_write(codec, WM8903_CLOCK_RATES_2, WM8903_CLK_SYS_ENA);

/* power on device */
wm8903_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

Expand Down

0 comments on commit c8bb07c

Please sign in to comment.