aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2004-11-29 11:02:48 +0100
committerJaroslav Kysela <perex@suse.cz>2004-11-29 11:02:48 +0100
commit0ef071dbd49590b39c01a6161387dbba03e4f790 (patch)
tree02699e269e6ce0e12e6846c2ee8efde8471132fe /sound
parent25ec38d23fe15c6e0d49db2e304e538c8196a42a (diff)
downloadhistory-0ef071dbd49590b39c01a6161387dbba03e4f790.tar.gz
[ALSA] Add pci_save_state() in suspend
ALSA Core Added pci_save_state() in the ALSA suspend core callback since its call was removed from the PCI core driver in the recent version. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/core/init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/core/init.c b/sound/core/init.c
index 2ffe74143d918a..509fdf2f84ce70 100644
--- a/sound/core/init.c
+++ b/sound/core/init.c
@@ -782,12 +782,15 @@ int snd_card_set_dev_pm_callback(snd_card_t *card, int type,
int snd_card_pci_suspend(struct pci_dev *dev, u32 state)
{
snd_card_t *card = pci_get_drvdata(dev);
+ int err;
if (! card || ! card->pm_suspend)
return 0;
if (card->power_state == SNDRV_CTL_POWER_D3hot)
return 0;
/* FIXME: correct state value? */
- return card->pm_suspend(card, 0);
+ err = card->pm_suspend(card, 0);
+ pci_save_state(dev);
+ return err;
}
int snd_card_pci_resume(struct pci_dev *dev)