Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99154
b: refs/heads/master
c: 3f77598
h: refs/heads/master
v: v3
  • Loading branch information
Manuel Lauss authored and Jaroslav Kysela committed Jul 10, 2008
1 parent 1ba107b commit 36d5acc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15e4c72f520d1db9adc38ba157547a7c1fca45b2
refs/heads/master: 3f775987030cf7ff922765c18ddd0d311b4b46ef
25 changes: 25 additions & 0 deletions trunk/sound/soc/codecs/ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,34 @@ static int ac97_soc_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM
static int ac97_soc_suspend(struct platform_device *pdev, pm_message_t msg)
{
struct snd_soc_device *socdev = platform_get_drvdata(pdev);

snd_ac97_suspend(socdev->codec->ac97);

return 0;
}

static int ac97_soc_resume(struct platform_device *pdev)
{
struct snd_soc_device *socdev = platform_get_drvdata(pdev);

snd_ac97_resume(socdev->codec->ac97);

return 0;
}
#else
#define ac97_soc_suspend NULL
#define ac97_soc_resume NULL
#endif

struct snd_soc_codec_device soc_codec_dev_ac97 = {
.probe = ac97_soc_probe,
.remove = ac97_soc_remove,
.suspend = ac97_soc_suspend,
.resume = ac97_soc_resume,
};
EXPORT_SYMBOL_GPL(soc_codec_dev_ac97);

Expand Down

0 comments on commit 36d5acc

Please sign in to comment.