diff options
author | Jaroslav Kysela <perex@hera.kernel.org> | 2005-06-21 10:39:41 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@hera.kernel.org> | 2005-06-21 10:39:41 -0400 |
commit | fae6ec69c84d71b1d5bda9ede1a262c1681684aa (patch) | |
tree | eb4aff9a5c2b7d04ce09a3717bb1dd4a79fe7595 /sound | |
parent | bbc0274e9bb2e3f1d724d445a2bd32566b9b66f7 (diff) | |
parent | 1d345dac1f30af1cd9f3a1faa12f9f18f17f236e (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/sound.c | 6 | ||||
-rw-r--r-- | sound/oss/Kconfig | 12 | ||||
-rw-r--r-- | sound/oss/soundcard.c | 19 | ||||
-rw-r--r-- | sound/sound_core.c | 10 |
4 files changed, 23 insertions, 24 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c index fa92e660ec2c..0815fadeb3ec 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
@@ -64,7 +64,7 @@ static struct list_head snd_minors_hash[SNDRV_CARDS]; | |||
64 | 64 | ||
65 | static DECLARE_MUTEX(sound_mutex); | 65 | static DECLARE_MUTEX(sound_mutex); |
66 | 66 | ||
67 | extern struct class_simple *sound_class; | 67 | extern struct class *sound_class; |
68 | 68 | ||
69 | 69 | ||
70 | #ifdef CONFIG_KMOD | 70 | #ifdef CONFIG_KMOD |
@@ -231,7 +231,7 @@ int snd_register_device(int type, snd_card_t * card, int dev, snd_minor_t * reg, | |||
231 | devfs_mk_cdev(MKDEV(major, minor), S_IFCHR | device_mode, "snd/%s", name); | 231 | devfs_mk_cdev(MKDEV(major, minor), S_IFCHR | device_mode, "snd/%s", name); |
232 | if (card) | 232 | if (card) |
233 | device = card->dev; | 233 | device = card->dev; |
234 | class_simple_device_add(sound_class, MKDEV(major, minor), device, name); | 234 | class_device_create(sound_class, MKDEV(major, minor), device, "%s", name); |
235 | 235 | ||
236 | up(&sound_mutex); | 236 | up(&sound_mutex); |
237 | return 0; | 237 | return 0; |
@@ -263,7 +263,7 @@ int snd_unregister_device(int type, snd_card_t * card, int dev) | |||
263 | 263 | ||
264 | if (strncmp(mptr->name, "controlC", 8) || card->number >= cards_limit) /* created in sound.c */ | 264 | if (strncmp(mptr->name, "controlC", 8) || card->number >= cards_limit) /* created in sound.c */ |
265 | devfs_remove("snd/%s", mptr->name); | 265 | devfs_remove("snd/%s", mptr->name); |
266 | class_simple_device_remove(MKDEV(major, minor)); | 266 | class_device_destroy(sound_class, MKDEV(major, minor)); |
267 | 267 | ||
268 | list_del(&mptr->list); | 268 | list_del(&mptr->list); |
269 | up(&sound_mutex); | 269 | up(&sound_mutex); |
diff --git a/sound/oss/Kconfig b/sound/oss/Kconfig index a9602f89d6b1..e537bd66a707 100644 --- a/sound/oss/Kconfig +++ b/sound/oss/Kconfig | |||
@@ -112,7 +112,7 @@ config SOUND_BCM_CS4297A | |||
112 | 112 | ||
113 | config SOUND_ES1370 | 113 | config SOUND_ES1370 |
114 | tristate "Ensoniq AudioPCI (ES1370)" | 114 | tristate "Ensoniq AudioPCI (ES1370)" |
115 | depends on SOUND_PRIME!=n && SOUND && PCI && SOUND_GAMEPORT | 115 | depends on SOUND_PRIME!=n && SOUND && PCI |
116 | help | 116 | help |
117 | Say Y or M if you have a PCI sound card utilizing the Ensoniq | 117 | Say Y or M if you have a PCI sound card utilizing the Ensoniq |
118 | ES1370 chipset, such as Ensoniq's AudioPCI (non-97). To find | 118 | ES1370 chipset, such as Ensoniq's AudioPCI (non-97). To find |
@@ -125,7 +125,7 @@ config SOUND_ES1370 | |||
125 | 125 | ||
126 | config SOUND_ES1371 | 126 | config SOUND_ES1371 |
127 | tristate "Creative Ensoniq AudioPCI 97 (ES1371)" | 127 | tristate "Creative Ensoniq AudioPCI 97 (ES1371)" |
128 | depends on SOUND_PRIME!=n && SOUND && PCI && SOUND_GAMEPORT | 128 | depends on SOUND_PRIME!=n && SOUND && PCI |
129 | help | 129 | help |
130 | Say Y or M if you have a PCI sound card utilizing the Ensoniq | 130 | Say Y or M if you have a PCI sound card utilizing the Ensoniq |
131 | ES1371 chipset, such as Ensoniq's AudioPCI97. To find out if | 131 | ES1371 chipset, such as Ensoniq's AudioPCI97. To find out if |
@@ -138,7 +138,7 @@ config SOUND_ES1371 | |||
138 | 138 | ||
139 | config SOUND_ESSSOLO1 | 139 | config SOUND_ESSSOLO1 |
140 | tristate "ESS Technology Solo1" | 140 | tristate "ESS Technology Solo1" |
141 | depends on SOUND_PRIME!=n && SOUND && SOUND_GAMEPORT && PCI | 141 | depends on SOUND_PRIME!=n && SOUND && PCI |
142 | help | 142 | help |
143 | Say Y or M if you have a PCI sound card utilizing the ESS Technology | 143 | Say Y or M if you have a PCI sound card utilizing the ESS Technology |
144 | Solo1 chip. To find out if your sound card uses a | 144 | Solo1 chip. To find out if your sound card uses a |
@@ -179,7 +179,7 @@ config SOUND_HARMONY | |||
179 | 179 | ||
180 | config SOUND_SONICVIBES | 180 | config SOUND_SONICVIBES |
181 | tristate "S3 SonicVibes" | 181 | tristate "S3 SonicVibes" |
182 | depends on SOUND_PRIME!=n && SOUND && SOUND_GAMEPORT | 182 | depends on SOUND_PRIME!=n && SOUND |
183 | help | 183 | help |
184 | Say Y or M if you have a PCI sound card utilizing the S3 | 184 | Say Y or M if you have a PCI sound card utilizing the S3 |
185 | SonicVibes chipset. To find out if your sound card uses a | 185 | SonicVibes chipset. To find out if your sound card uses a |
@@ -226,7 +226,7 @@ config SOUND_AU1550_AC97 | |||
226 | 226 | ||
227 | config SOUND_TRIDENT | 227 | config SOUND_TRIDENT |
228 | tristate "Trident 4DWave DX/NX, SiS 7018 or ALi 5451 PCI Audio Core" | 228 | tristate "Trident 4DWave DX/NX, SiS 7018 or ALi 5451 PCI Audio Core" |
229 | depends on SOUND_PRIME!=n && SOUND && SOUND_GAMEPORT | 229 | depends on SOUND_PRIME!=n && SOUND |
230 | ---help--- | 230 | ---help--- |
231 | Say Y or M if you have a PCI sound card utilizing the Trident | 231 | Say Y or M if you have a PCI sound card utilizing the Trident |
232 | 4DWave-DX/NX chipset or your mother board chipset has SiS 7018 | 232 | 4DWave-DX/NX chipset or your mother board chipset has SiS 7018 |
@@ -739,7 +739,7 @@ config SOUND_NM256 | |||
739 | 739 | ||
740 | config SOUND_MAD16 | 740 | config SOUND_MAD16 |
741 | tristate "OPTi MAD16 and/or Mozart based cards" | 741 | tristate "OPTi MAD16 and/or Mozart based cards" |
742 | depends on SOUND_OSS && SOUND_GAMEPORT | 742 | depends on SOUND_OSS |
743 | ---help--- | 743 | ---help--- |
744 | Answer Y if your card has a Mozart (OAK OTI-601) or MAD16 (OPTi | 744 | Answer Y if your card has a Mozart (OAK OTI-601) or MAD16 (OPTi |
745 | 82C928 or 82C929 or 82C931) audio interface chip. These chips are | 745 | 82C928 or 82C929 or 82C931) audio interface chip. These chips are |
diff --git a/sound/oss/soundcard.c b/sound/oss/soundcard.c index de91c90a0112..a686be936aff 100644 --- a/sound/oss/soundcard.c +++ b/sound/oss/soundcard.c | |||
@@ -73,7 +73,7 @@ static char dma_alloc_map[MAX_DMA_CHANNELS]; | |||
73 | 73 | ||
74 | 74 | ||
75 | unsigned long seq_time = 0; /* Time for /dev/sequencer */ | 75 | unsigned long seq_time = 0; /* Time for /dev/sequencer */ |
76 | extern struct class_simple *sound_class; | 76 | extern struct class *sound_class; |
77 | 77 | ||
78 | /* | 78 | /* |
79 | * Table for configurable mixer volume handling | 79 | * Table for configurable mixer volume handling |
@@ -567,9 +567,9 @@ static int __init oss_init(void) | |||
567 | devfs_mk_cdev(MKDEV(SOUND_MAJOR, dev_list[i].minor), | 567 | devfs_mk_cdev(MKDEV(SOUND_MAJOR, dev_list[i].minor), |
568 | S_IFCHR | dev_list[i].mode, | 568 | S_IFCHR | dev_list[i].mode, |
569 | "sound/%s", dev_list[i].name); | 569 | "sound/%s", dev_list[i].name); |
570 | class_simple_device_add(sound_class, | 570 | class_device_create(sound_class, |
571 | MKDEV(SOUND_MAJOR, dev_list[i].minor), | 571 | MKDEV(SOUND_MAJOR, dev_list[i].minor), |
572 | NULL, "%s", dev_list[i].name); | 572 | NULL, "%s", dev_list[i].name); |
573 | 573 | ||
574 | if (!dev_list[i].num) | 574 | if (!dev_list[i].num) |
575 | continue; | 575 | continue; |
@@ -579,10 +579,9 @@ static int __init oss_init(void) | |||
579 | dev_list[i].minor + (j*0x10)), | 579 | dev_list[i].minor + (j*0x10)), |
580 | S_IFCHR | dev_list[i].mode, | 580 | S_IFCHR | dev_list[i].mode, |
581 | "sound/%s%d", dev_list[i].name, j); | 581 | "sound/%s%d", dev_list[i].name, j); |
582 | class_simple_device_add(sound_class, | 582 | class_device_create(sound_class, |
583 | MKDEV(SOUND_MAJOR, dev_list[i].minor + (j*0x10)), | 583 | MKDEV(SOUND_MAJOR, dev_list[i].minor + (j*0x10)), |
584 | NULL, | 584 | NULL, "%s%d", dev_list[i].name, j); |
585 | "%s%d", dev_list[i].name, j); | ||
586 | } | 585 | } |
587 | } | 586 | } |
588 | 587 | ||
@@ -598,12 +597,12 @@ static void __exit oss_cleanup(void) | |||
598 | 597 | ||
599 | for (i = 0; i < sizeof (dev_list) / sizeof *dev_list; i++) { | 598 | for (i = 0; i < sizeof (dev_list) / sizeof *dev_list; i++) { |
600 | devfs_remove("sound/%s", dev_list[i].name); | 599 | devfs_remove("sound/%s", dev_list[i].name); |
601 | class_simple_device_remove(MKDEV(SOUND_MAJOR, dev_list[i].minor)); | 600 | class_device_destroy(sound_class, MKDEV(SOUND_MAJOR, dev_list[i].minor)); |
602 | if (!dev_list[i].num) | 601 | if (!dev_list[i].num) |
603 | continue; | 602 | continue; |
604 | for (j = 1; j < *dev_list[i].num; j++) { | 603 | for (j = 1; j < *dev_list[i].num; j++) { |
605 | devfs_remove("sound/%s%d", dev_list[i].name, j); | 604 | devfs_remove("sound/%s%d", dev_list[i].name, j); |
606 | class_simple_device_remove(MKDEV(SOUND_MAJOR, dev_list[i].minor + (j*0x10))); | 605 | class_device_destroy(sound_class, MKDEV(SOUND_MAJOR, dev_list[i].minor + (j*0x10))); |
607 | } | 606 | } |
608 | } | 607 | } |
609 | 608 | ||
diff --git a/sound/sound_core.c b/sound/sound_core.c index 30f75c9288cb..21a69e096225 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c | |||
@@ -65,7 +65,7 @@ extern int msnd_classic_init(void); | |||
65 | extern int msnd_pinnacle_init(void); | 65 | extern int msnd_pinnacle_init(void); |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | struct class_simple *sound_class; | 68 | struct class *sound_class; |
69 | EXPORT_SYMBOL(sound_class); | 69 | EXPORT_SYMBOL(sound_class); |
70 | 70 | ||
71 | /* | 71 | /* |
@@ -174,7 +174,7 @@ static int sound_insert_unit(struct sound_unit **list, struct file_operations *f | |||
174 | 174 | ||
175 | devfs_mk_cdev(MKDEV(SOUND_MAJOR, s->unit_minor), | 175 | devfs_mk_cdev(MKDEV(SOUND_MAJOR, s->unit_minor), |
176 | S_IFCHR | mode, s->name); | 176 | S_IFCHR | mode, s->name); |
177 | class_simple_device_add(sound_class, MKDEV(SOUND_MAJOR, s->unit_minor), | 177 | class_device_create(sound_class, MKDEV(SOUND_MAJOR, s->unit_minor), |
178 | NULL, s->name+6); | 178 | NULL, s->name+6); |
179 | return r; | 179 | return r; |
180 | 180 | ||
@@ -198,7 +198,7 @@ static void sound_remove_unit(struct sound_unit **list, int unit) | |||
198 | spin_unlock(&sound_loader_lock); | 198 | spin_unlock(&sound_loader_lock); |
199 | if (p) { | 199 | if (p) { |
200 | devfs_remove(p->name); | 200 | devfs_remove(p->name); |
201 | class_simple_device_remove(MKDEV(SOUND_MAJOR, p->unit_minor)); | 201 | class_device_destroy(sound_class, MKDEV(SOUND_MAJOR, p->unit_minor)); |
202 | kfree(p); | 202 | kfree(p); |
203 | } | 203 | } |
204 | } | 204 | } |
@@ -562,7 +562,7 @@ static void __exit cleanup_soundcore(void) | |||
562 | empty */ | 562 | empty */ |
563 | unregister_chrdev(SOUND_MAJOR, "sound"); | 563 | unregister_chrdev(SOUND_MAJOR, "sound"); |
564 | devfs_remove("sound"); | 564 | devfs_remove("sound"); |
565 | class_simple_destroy(sound_class); | 565 | class_destroy(sound_class); |
566 | } | 566 | } |
567 | 567 | ||
568 | static int __init init_soundcore(void) | 568 | static int __init init_soundcore(void) |
@@ -572,7 +572,7 @@ static int __init init_soundcore(void) | |||
572 | return -EBUSY; | 572 | return -EBUSY; |
573 | } | 573 | } |
574 | devfs_mk_dir ("sound"); | 574 | devfs_mk_dir ("sound"); |
575 | sound_class = class_simple_create(THIS_MODULE, "sound"); | 575 | sound_class = class_create(THIS_MODULE, "sound"); |
576 | if (IS_ERR(sound_class)) | 576 | if (IS_ERR(sound_class)) |
577 | return PTR_ERR(sound_class); | 577 | return PTR_ERR(sound_class); |
578 | 578 | ||