diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 09:55:49 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:20:19 -0500 |
commit | a381a7a66486f11606eccb8866e29848f995278f (patch) | |
tree | 4fcc2f971a1f0d509939181b91096a600454b0d6 /sound/core/sound.c | |
parent | fd66e0d0591dd12eb0bea1e9f3aa194bb93cebbd (diff) |
[ALSA] Decentralize PM control
Modules: ALSA Core,Control Midlevel,/oss/Makefile
Remove the centralized PM control in the sound core.
Each driver is responsible to get callbacks from bus/driver now.
SND_GENERIC_DRIVER is removed together with this action.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/sound.c')
-rw-r--r-- | sound/core/sound.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c index 04de0084e42a..fb236a6b9c34 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <sound/initval.h> | 32 | #include <sound/initval.h> |
33 | #include <linux/kmod.h> | 33 | #include <linux/kmod.h> |
34 | #include <linux/devfs_fs_kernel.h> | 34 | #include <linux/devfs_fs_kernel.h> |
35 | #include <linux/platform_device.h> | ||
36 | 35 | ||
37 | #define SNDRV_OS_MINORS 256 | 36 | #define SNDRV_OS_MINORS 256 |
38 | 37 | ||
@@ -328,10 +327,6 @@ int __exit snd_minor_info_done(void) | |||
328 | * INIT PART | 327 | * INIT PART |
329 | */ | 328 | */ |
330 | 329 | ||
331 | #ifdef CONFIG_SND_GENERIC_DRIVER | ||
332 | extern struct platform_driver snd_generic_driver; | ||
333 | #endif | ||
334 | |||
335 | static int __init alsa_sound_init(void) | 330 | static int __init alsa_sound_init(void) |
336 | { | 331 | { |
337 | short controlnum; | 332 | short controlnum; |
@@ -356,9 +351,6 @@ static int __init alsa_sound_init(void) | |||
356 | return -ENOMEM; | 351 | return -ENOMEM; |
357 | } | 352 | } |
358 | snd_info_minor_register(); | 353 | snd_info_minor_register(); |
359 | #ifdef CONFIG_SND_GENERIC_DRIVER | ||
360 | platform_driver_register(&snd_generic_driver); | ||
361 | #endif | ||
362 | for (controlnum = 0; controlnum < cards_limit; controlnum++) | 354 | for (controlnum = 0; controlnum < cards_limit; controlnum++) |
363 | devfs_mk_cdev(MKDEV(major, controlnum<<5), S_IFCHR | device_mode, "snd/controlC%d", controlnum); | 355 | devfs_mk_cdev(MKDEV(major, controlnum<<5), S_IFCHR | device_mode, "snd/controlC%d", controlnum); |
364 | #ifndef MODULE | 356 | #ifndef MODULE |
@@ -374,9 +366,6 @@ static void __exit alsa_sound_exit(void) | |||
374 | for (controlnum = 0; controlnum < cards_limit; controlnum++) | 366 | for (controlnum = 0; controlnum < cards_limit; controlnum++) |
375 | devfs_remove("snd/controlC%d", controlnum); | 367 | devfs_remove("snd/controlC%d", controlnum); |
376 | 368 | ||
377 | #ifdef CONFIG_SND_GENERIC_DRIVER | ||
378 | platform_driver_unregister(&snd_generic_driver); | ||
379 | #endif | ||
380 | snd_info_minor_unregister(); | 369 | snd_info_minor_unregister(); |
381 | snd_info_done(); | 370 | snd_info_done(); |
382 | if (unregister_chrdev(major, "alsa") != 0) | 371 | if (unregister_chrdev(major, "alsa") != 0) |
@@ -415,19 +404,8 @@ EXPORT_SYMBOL(snd_card_register); | |||
415 | EXPORT_SYMBOL(snd_component_add); | 404 | EXPORT_SYMBOL(snd_component_add); |
416 | EXPORT_SYMBOL(snd_card_file_add); | 405 | EXPORT_SYMBOL(snd_card_file_add); |
417 | EXPORT_SYMBOL(snd_card_file_remove); | 406 | EXPORT_SYMBOL(snd_card_file_remove); |
418 | #ifdef CONFIG_SND_GENERIC_DRIVER | ||
419 | EXPORT_SYMBOL(snd_card_set_generic_dev); | ||
420 | #endif | ||
421 | #ifdef CONFIG_PM | 407 | #ifdef CONFIG_PM |
422 | EXPORT_SYMBOL(snd_power_wait); | 408 | EXPORT_SYMBOL(snd_power_wait); |
423 | EXPORT_SYMBOL(snd_card_set_pm_callback); | ||
424 | #ifdef CONFIG_SND_GENERIC_DRIVER | ||
425 | EXPORT_SYMBOL(snd_card_set_generic_pm_callback); | ||
426 | #endif | ||
427 | #ifdef CONFIG_PCI | ||
428 | EXPORT_SYMBOL(snd_card_pci_suspend); | ||
429 | EXPORT_SYMBOL(snd_card_pci_resume); | ||
430 | #endif | ||
431 | #endif | 409 | #endif |
432 | /* device.c */ | 410 | /* device.c */ |
433 | EXPORT_SYMBOL(snd_device_new); | 411 | EXPORT_SYMBOL(snd_device_new); |