Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92205
b: refs/heads/master
c: 87b57fe
h: refs/heads/master
i:
  92203: 1bb6db0
v: v3
  • Loading branch information
Mark Brown authored and Takashi Iwai committed Apr 24, 2008
1 parent 8ffd491 commit 8b3295e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: a295e09e89d227506ae6c0a58e1cb6359c0cda1c
refs/heads/master: 87b57fe2d3fb1ce33671b944db9a4cbe0cd065ea
11 changes: 10 additions & 1 deletion trunk/sound/soc/codecs/wm9713.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,17 @@ static int wm9713_soc_suspend(struct platform_device *pdev,
{
struct snd_soc_device *socdev = platform_get_drvdata(pdev);
struct snd_soc_codec *codec = socdev->codec;
u16 reg;

/* Disable everything except touchpanel - that will be handled
* by the touch driver and left disabled if touch is not in
* use. */
reg = ac97_read(codec, AC97_EXTENDED_MID);
ac97_write(codec, AC97_EXTENDED_MID, reg | 0x7fff);
ac97_write(codec, AC97_EXTENDED_MSTATUS, 0xffff);
ac97_write(codec, AC97_POWERDOWN, 0x6f00);
ac97_write(codec, AC97_POWERDOWN, 0xffff);

wm9713_dapm_event(codec, SNDRV_CTL_POWER_D3cold);
return 0;
}

Expand Down

0 comments on commit 8b3295e

Please sign in to comment.