Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92217
b: refs/heads/master
c: 0a08478
h: refs/heads/master
i:
  92215: 3789014
v: v3
  • Loading branch information
Mark Brown authored and Takashi Iwai committed Apr 24, 2008
1 parent 484a4c9 commit e7fa9f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition 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: 4972a177fed34036498aee555335f84a70219bc1
refs/heads/master: 0a08478c0f7548211b492b578a67dacca5aea1a8
8 changes: 0 additions & 8 deletions trunk/sound/soc/codecs/wm9712.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,22 +581,14 @@ static int wm9712_dapm_event(struct snd_soc_codec *codec, int event)

switch (event) {
case SNDRV_CTL_POWER_D0: /* full On */
/* liam - maybe enable thermal shutdown */
reg = ac97_read(codec, AC97_EXTENDED_MID) & 0xdfff;
ac97_write(codec, AC97_EXTENDED_MID, reg);
break;
case SNDRV_CTL_POWER_D1: /* partial On */
case SNDRV_CTL_POWER_D2: /* partial On */
break;
case SNDRV_CTL_POWER_D3hot: /* Off, with power */
/* enable master bias and vmid */
reg = ac97_read(codec, AC97_EXTENDED_MID) & 0xbbff;
ac97_write(codec, AC97_EXTENDED_MID, reg);
ac97_write(codec, AC97_POWERDOWN, 0x0000);
break;
case SNDRV_CTL_POWER_D3cold: /* Off, without power */
/* disable everything including AC link */
ac97_write(codec, AC97_EXTENDED_MID, 0xffff);
ac97_write(codec, AC97_EXTENDED_MSTATUS, 0xffff);
ac97_write(codec, AC97_POWERDOWN, 0xffff);
break;
Expand Down

0 comments on commit e7fa9f4

Please sign in to comment.