diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-07-13 16:23:51 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-07-13 16:23:51 -0400 |
commit | 327309e899662b482c58cf25f574513d38b5788c (patch) | |
tree | 069de438aa0e92dd9b6ba28e6b207e2cd07151a5 /sound | |
parent | 0c168775709faa74c1b87f1e61046e0c51ade7f3 (diff) | |
parent | c32511e2718618f0b53479eb36e07439aa363a74 (diff) |
Merge upstream 2.6.13-rc3 into ieee80211 branch of netdev-2.6.
Diffstat (limited to 'sound')
-rw-r--r-- | sound/oss/cs46xx.c | 6 | ||||
-rw-r--r-- | sound/pci/bt87x.c | 4 | ||||
-rw-r--r-- | sound/pcmcia/pdaudiocf/pdaudiocf.c | 20 | ||||
-rw-r--r-- | sound/pcmcia/vx/vx_entry.c | 12 | ||||
-rw-r--r-- | sound/pcmcia/vx/vxpocket.c | 1 |
5 files changed, 14 insertions, 29 deletions
diff --git a/sound/oss/cs46xx.c b/sound/oss/cs46xx.c index 9e42a1a67ca4..cb998e8c0fdd 100644 --- a/sound/oss/cs46xx.c +++ b/sound/oss/cs46xx.c | |||
@@ -4174,7 +4174,7 @@ static int cs_ioctl_mixdev(struct inode *inode, struct file *file, unsigned int | |||
4174 | list_for_each(entry, &cs46xx_devs) | 4174 | list_for_each(entry, &cs46xx_devs) |
4175 | { | 4175 | { |
4176 | card = list_entry(entry, struct cs_card, list); | 4176 | card = list_entry(entry, struct cs_card, list); |
4177 | cs46xx_suspend(card, 0); | 4177 | cs46xx_suspend(card, PMSG_ON); |
4178 | } | 4178 | } |
4179 | 4179 | ||
4180 | } | 4180 | } |
@@ -5749,7 +5749,7 @@ static int cs46xx_pm_callback(struct pm_dev *dev, pm_request_t rqst, void *data) | |||
5749 | case PM_SUSPEND: | 5749 | case PM_SUSPEND: |
5750 | CS_DBGOUT(CS_PM, 2, printk(KERN_INFO | 5750 | CS_DBGOUT(CS_PM, 2, printk(KERN_INFO |
5751 | "cs46xx: PM suspend request\n")); | 5751 | "cs46xx: PM suspend request\n")); |
5752 | if(cs46xx_suspend(card, 0)) | 5752 | if(cs46xx_suspend(card, PMSG_SUSPEND)) |
5753 | { | 5753 | { |
5754 | CS_DBGOUT(CS_ERROR, 2, printk(KERN_INFO | 5754 | CS_DBGOUT(CS_ERROR, 2, printk(KERN_INFO |
5755 | "cs46xx: PM suspend request refused\n")); | 5755 | "cs46xx: PM suspend request refused\n")); |
@@ -5779,7 +5779,7 @@ static int cs46xx_suspend_tbl(struct pci_dev *pcidev, pm_message_t state) | |||
5779 | struct cs_card *s = PCI_GET_DRIVER_DATA(pcidev); | 5779 | struct cs_card *s = PCI_GET_DRIVER_DATA(pcidev); |
5780 | CS_DBGOUT(CS_PM | CS_FUNCTION, 2, | 5780 | CS_DBGOUT(CS_PM | CS_FUNCTION, 2, |
5781 | printk(KERN_INFO "cs46xx: cs46xx_suspend_tbl request\n")); | 5781 | printk(KERN_INFO "cs46xx: cs46xx_suspend_tbl request\n")); |
5782 | cs46xx_suspend(s, 0); | 5782 | cs46xx_suspend(s, state); |
5783 | return 0; | 5783 | return 0; |
5784 | } | 5784 | } |
5785 | 5785 | ||
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index defdc5a459f0..c5557eaf3e2e 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -798,13 +798,15 @@ static struct { | |||
798 | {0x270f, 0xfc00}, /* Chaintech Digitop DST-1000 DVB-S */ | 798 | {0x270f, 0xfc00}, /* Chaintech Digitop DST-1000 DVB-S */ |
799 | }; | 799 | }; |
800 | 800 | ||
801 | static struct pci_driver driver; | ||
802 | |||
801 | /* return the rate of the card, or a negative value if it's blacklisted */ | 803 | /* return the rate of the card, or a negative value if it's blacklisted */ |
802 | static int __devinit snd_bt87x_detect_card(struct pci_dev *pci) | 804 | static int __devinit snd_bt87x_detect_card(struct pci_dev *pci) |
803 | { | 805 | { |
804 | int i; | 806 | int i; |
805 | const struct pci_device_id *supported; | 807 | const struct pci_device_id *supported; |
806 | 808 | ||
807 | supported = pci_match_device(snd_bt87x_ids, pci); | 809 | supported = pci_match_device(&driver, pci); |
808 | if (supported) | 810 | if (supported) |
809 | return supported->driver_data; | 811 | return supported->driver_data; |
810 | 812 | ||
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c index 2d4f8e28478b..d6918b453f28 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <sound/core.h> | 22 | #include <sound/core.h> |
23 | #include <linux/slab.h> | 23 | #include <linux/slab.h> |
24 | #include <linux/moduleparam.h> | 24 | #include <linux/moduleparam.h> |
25 | #include <pcmcia/version.h> | ||
26 | #include <pcmcia/ciscode.h> | 25 | #include <pcmcia/ciscode.h> |
27 | #include <pcmcia/cisreg.h> | 26 | #include <pcmcia/cisreg.h> |
28 | #include "pdaudiocf.h" | 27 | #include "pdaudiocf.h" |
@@ -171,14 +170,6 @@ static dev_link_t *snd_pdacf_attach(void) | |||
171 | 170 | ||
172 | /* Register with Card Services */ | 171 | /* Register with Card Services */ |
173 | client_reg.dev_info = &dev_info; | 172 | client_reg.dev_info = &dev_info; |
174 | client_reg.EventMask = | ||
175 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | ||
176 | #ifdef CONFIG_PM | ||
177 | | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | ||
178 | | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME | ||
179 | #endif | ||
180 | ; | ||
181 | client_reg.event_handler = &pdacf_event; | ||
182 | client_reg.Version = 0x0210; | 173 | client_reg.Version = 0x0210; |
183 | client_reg.event_callback_args.client_data = link; | 174 | client_reg.event_callback_args.client_data = link; |
184 | 175 | ||
@@ -387,12 +378,13 @@ static struct pcmcia_device_id snd_pdacf_ids[] = { | |||
387 | MODULE_DEVICE_TABLE(pcmcia, snd_pdacf_ids); | 378 | MODULE_DEVICE_TABLE(pcmcia, snd_pdacf_ids); |
388 | 379 | ||
389 | static struct pcmcia_driver pdacf_cs_driver = { | 380 | static struct pcmcia_driver pdacf_cs_driver = { |
390 | .owner = THIS_MODULE, | 381 | .owner = THIS_MODULE, |
391 | .drv = { | 382 | .drv = { |
392 | .name = "snd-pdaudiocf", | 383 | .name = "snd-pdaudiocf", |
393 | }, | 384 | }, |
394 | .attach = snd_pdacf_attach, | 385 | .attach = snd_pdacf_attach, |
395 | .detach = snd_pdacf_detach, | 386 | .event = pdacf_event, |
387 | .detach = snd_pdacf_detach, | ||
396 | .id_table = snd_pdacf_ids, | 388 | .id_table = snd_pdacf_ids, |
397 | }; | 389 | }; |
398 | 390 | ||
diff --git a/sound/pcmcia/vx/vx_entry.c b/sound/pcmcia/vx/vx_entry.c index 332bbca3dfc4..df7a39ba9680 100644 --- a/sound/pcmcia/vx/vx_entry.c +++ b/sound/pcmcia/vx/vx_entry.c | |||
@@ -35,7 +35,6 @@ MODULE_LICENSE("GPL"); | |||
35 | * prototypes | 35 | * prototypes |
36 | */ | 36 | */ |
37 | static void vxpocket_config(dev_link_t *link); | 37 | static void vxpocket_config(dev_link_t *link); |
38 | static int vxpocket_event(event_t event, int priority, event_callback_args_t *args); | ||
39 | 38 | ||
40 | 39 | ||
41 | static void vxpocket_release(dev_link_t *link) | 40 | static void vxpocket_release(dev_link_t *link) |
@@ -169,14 +168,6 @@ dev_link_t *snd_vxpocket_attach(struct snd_vxp_entry *hw) | |||
169 | /* Register with Card Services */ | 168 | /* Register with Card Services */ |
170 | memset(&client_reg, 0, sizeof(client_reg)); | 169 | memset(&client_reg, 0, sizeof(client_reg)); |
171 | client_reg.dev_info = hw->dev_info; | 170 | client_reg.dev_info = hw->dev_info; |
172 | client_reg.EventMask = | ||
173 | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | ||
174 | #ifdef CONFIG_PM | ||
175 | | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | ||
176 | | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME | ||
177 | #endif | ||
178 | ; | ||
179 | client_reg.event_handler = &vxpocket_event; | ||
180 | client_reg.Version = 0x0210; | 171 | client_reg.Version = 0x0210; |
181 | client_reg.event_callback_args.client_data = link; | 172 | client_reg.event_callback_args.client_data = link; |
182 | 173 | ||
@@ -321,7 +312,7 @@ failed: | |||
321 | /* | 312 | /* |
322 | * event callback | 313 | * event callback |
323 | */ | 314 | */ |
324 | static int vxpocket_event(event_t event, int priority, event_callback_args_t *args) | 315 | int vxpocket_event(event_t event, int priority, event_callback_args_t *args) |
325 | { | 316 | { |
326 | dev_link_t *link = args->client_data; | 317 | dev_link_t *link = args->client_data; |
327 | vx_core_t *chip = link->priv; | 318 | vx_core_t *chip = link->priv; |
@@ -380,4 +371,5 @@ static int vxpocket_event(event_t event, int priority, event_callback_args_t *ar | |||
380 | */ | 371 | */ |
381 | EXPORT_SYMBOL(snd_vxpocket_ops); | 372 | EXPORT_SYMBOL(snd_vxpocket_ops); |
382 | EXPORT_SYMBOL(snd_vxpocket_attach); | 373 | EXPORT_SYMBOL(snd_vxpocket_attach); |
374 | EXPORT_SYMBOL(vxpocket_event); | ||
383 | EXPORT_SYMBOL(snd_vxpocket_detach); | 375 | EXPORT_SYMBOL(snd_vxpocket_detach); |
diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c index 5f4c13264159..62d6fa128148 100644 --- a/sound/pcmcia/vx/vxpocket.c +++ b/sound/pcmcia/vx/vxpocket.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/moduleparam.h> | 24 | #include <linux/moduleparam.h> |
25 | #include <sound/core.h> | 25 | #include <sound/core.h> |
26 | #include <pcmcia/version.h> | ||
27 | #include "vxpocket.h" | 26 | #include "vxpocket.h" |
28 | #include <sound/initval.h> | 27 | #include <sound/initval.h> |
29 | 28 | ||