diff options
Diffstat (limited to 'sound/pci/ctxfi/xfi.c')
-rw-r--r-- | sound/pci/ctxfi/xfi.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c index 2d3dd89af151..76541748e7bc 100644 --- a/sound/pci/ctxfi/xfi.c +++ b/sound/pci/ctxfi/xfi.c | |||
@@ -121,11 +121,33 @@ static void __devexit ct_card_remove(struct pci_dev *pci) | |||
121 | pci_set_drvdata(pci, NULL); | 121 | pci_set_drvdata(pci, NULL); |
122 | } | 122 | } |
123 | 123 | ||
124 | #ifdef CONFIG_PM | ||
125 | static int ct_card_suspend(struct pci_dev *pci, pm_message_t state) | ||
126 | { | ||
127 | struct snd_card *card = pci_get_drvdata(pci); | ||
128 | struct ct_atc *atc = card->private_data; | ||
129 | |||
130 | return atc->suspend(atc, state); | ||
131 | } | ||
132 | |||
133 | static int ct_card_resume(struct pci_dev *pci) | ||
134 | { | ||
135 | struct snd_card *card = pci_get_drvdata(pci); | ||
136 | struct ct_atc *atc = card->private_data; | ||
137 | |||
138 | return atc->resume(atc); | ||
139 | } | ||
140 | #endif | ||
141 | |||
124 | static struct pci_driver ct_driver = { | 142 | static struct pci_driver ct_driver = { |
125 | .name = "SB-XFi", | 143 | .name = "SB-XFi", |
126 | .id_table = ct_pci_dev_ids, | 144 | .id_table = ct_pci_dev_ids, |
127 | .probe = ct_card_probe, | 145 | .probe = ct_card_probe, |
128 | .remove = __devexit_p(ct_card_remove), | 146 | .remove = __devexit_p(ct_card_remove), |
147 | #ifdef CONFIG_PM | ||
148 | .suspend = ct_card_suspend, | ||
149 | .resume = ct_card_resume, | ||
150 | #endif | ||
129 | }; | 151 | }; |
130 | 152 | ||
131 | static int __init ct_card_init(void) | 153 | static int __init ct_card_init(void) |