diff options
author | Jie Yang <yang.jie@intel.com> | 2015-05-27 07:45:45 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-05-27 15:25:19 -0400 |
commit | cd6a65036f0eac4ad83dc371bb458e9e6ba6e306 (patch) | |
tree | 8fde8da6fa86c62608202b5772059426e16ad217 /sound/core | |
parent | e0ecb05a965d0ff77ec65499bbc74eacd8d93452 (diff) |
ALSA: replace CONFIG_PROC_FS with CONFIG_SND_PROC_FS
We may disable proc fs only for sound part, to reduce ALSA
memory footprint. So add CONFIG_SND_PROC_FS and replace the
old CONFIG_PROC_FSs in alsa code.
With sound proc fs disabled, we can save about 9KB memory
size on X86_64 platform.
Signed-off-by: Jie Yang <yang.jie@intel.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/Makefile | 2 | ||||
-rw-r--r-- | sound/core/hwdep.c | 6 | ||||
-rw-r--r-- | sound/core/init.c | 8 | ||||
-rw-r--r-- | sound/core/oss/mixer_oss.c | 6 | ||||
-rw-r--r-- | sound/core/pcm.c | 6 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss.c | 6 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_init.c | 5 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_midi.c | 4 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_readq.c | 4 | ||||
-rw-r--r-- | sound/core/seq/oss/seq_oss_synth.c | 4 | ||||
-rw-r--r-- | sound/core/seq/seq_clientmgr.c | 4 | ||||
-rw-r--r-- | sound/core/seq/seq_device.c | 2 | ||||
-rw-r--r-- | sound/core/seq/seq_info.h | 2 | ||||
-rw-r--r-- | sound/core/seq/seq_queue.c | 4 | ||||
-rw-r--r-- | sound/core/seq/seq_timer.c | 4 | ||||
-rw-r--r-- | sound/core/sound.c | 4 | ||||
-rw-r--r-- | sound/core/sound_oss.c | 4 | ||||
-rw-r--r-- | sound/core/timer.c | 4 |
18 files changed, 39 insertions, 40 deletions
diff --git a/sound/core/Makefile b/sound/core/Makefile index 73871b63a092..3354f91e003a 100644 --- a/sound/core/Makefile +++ b/sound/core/Makefile | |||
@@ -4,7 +4,7 @@ | |||
4 | # | 4 | # |
5 | 5 | ||
6 | snd-y := sound.o init.o memory.o control.o misc.o device.o | 6 | snd-y := sound.o init.o memory.o control.o misc.o device.o |
7 | ifneq ($(CONFIG_PROC_FS),) | 7 | ifneq ($(CONFIG_SND_PROC_FS),) |
8 | snd-y += info.o | 8 | snd-y += info.o |
9 | snd-$(CONFIG_SND_OSSEMUL) += info_oss.o | 9 | snd-$(CONFIG_SND_OSSEMUL) += info_oss.o |
10 | endif | 10 | endif |
diff --git a/sound/core/hwdep.c b/sound/core/hwdep.c index 51692c8a39ea..36d2416f90d9 100644 --- a/sound/core/hwdep.c +++ b/sound/core/hwdep.c | |||
@@ -484,7 +484,7 @@ static int snd_hwdep_dev_disconnect(struct snd_device *device) | |||
484 | return 0; | 484 | return 0; |
485 | } | 485 | } |
486 | 486 | ||
487 | #ifdef CONFIG_PROC_FS | 487 | #ifdef CONFIG_SND_PROC_FS |
488 | /* | 488 | /* |
489 | * Info interface | 489 | * Info interface |
490 | */ | 490 | */ |
@@ -521,10 +521,10 @@ static void __exit snd_hwdep_proc_done(void) | |||
521 | { | 521 | { |
522 | snd_info_free_entry(snd_hwdep_proc_entry); | 522 | snd_info_free_entry(snd_hwdep_proc_entry); |
523 | } | 523 | } |
524 | #else /* !CONFIG_PROC_FS */ | 524 | #else /* !CONFIG_SND_PROC_FS */ |
525 | #define snd_hwdep_proc_init() | 525 | #define snd_hwdep_proc_init() |
526 | #define snd_hwdep_proc_done() | 526 | #define snd_hwdep_proc_done() |
527 | #endif /* CONFIG_PROC_FS */ | 527 | #endif /* CONFIG_SND_PROC_FS */ |
528 | 528 | ||
529 | 529 | ||
530 | /* | 530 | /* |
diff --git a/sound/core/init.c b/sound/core/init.c index f8abd2d8144e..3e0cebacefe1 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -100,7 +100,7 @@ int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag); | |||
100 | EXPORT_SYMBOL(snd_mixer_oss_notify_callback); | 100 | EXPORT_SYMBOL(snd_mixer_oss_notify_callback); |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | #ifdef CONFIG_PROC_FS | 103 | #ifdef CONFIG_SND_PROC_FS |
104 | static void snd_card_id_read(struct snd_info_entry *entry, | 104 | static void snd_card_id_read(struct snd_info_entry *entry, |
105 | struct snd_info_buffer *buffer) | 105 | struct snd_info_buffer *buffer) |
106 | { | 106 | { |
@@ -122,7 +122,7 @@ static int init_info_for_card(struct snd_card *card) | |||
122 | 122 | ||
123 | return snd_info_card_register(card); | 123 | return snd_info_card_register(card); |
124 | } | 124 | } |
125 | #else /* !CONFIG_PROC_FS */ | 125 | #else /* !CONFIG_SND_PROC_FS */ |
126 | #define init_info_for_card(card) | 126 | #define init_info_for_card(card) |
127 | #endif | 127 | #endif |
128 | 128 | ||
@@ -776,7 +776,7 @@ int snd_card_register(struct snd_card *card) | |||
776 | 776 | ||
777 | EXPORT_SYMBOL(snd_card_register); | 777 | EXPORT_SYMBOL(snd_card_register); |
778 | 778 | ||
779 | #ifdef CONFIG_PROC_FS | 779 | #ifdef CONFIG_SND_PROC_FS |
780 | static void snd_card_info_read(struct snd_info_entry *entry, | 780 | static void snd_card_info_read(struct snd_info_entry *entry, |
781 | struct snd_info_buffer *buffer) | 781 | struct snd_info_buffer *buffer) |
782 | { | 782 | { |
@@ -861,7 +861,7 @@ int __init snd_card_info_init(void) | |||
861 | 861 | ||
862 | return 0; | 862 | return 0; |
863 | } | 863 | } |
864 | #endif /* CONFIG_PROC_FS */ | 864 | #endif /* CONFIG_SND_PROC_FS */ |
865 | 865 | ||
866 | /** | 866 | /** |
867 | * snd_component_add - add a component string | 867 | * snd_component_add - add a component string |
diff --git a/sound/core/oss/mixer_oss.c b/sound/core/oss/mixer_oss.c index 056f8e274851..a99f7200ff3f 100644 --- a/sound/core/oss/mixer_oss.c +++ b/sound/core/oss/mixer_oss.c | |||
@@ -1111,7 +1111,7 @@ static int snd_mixer_oss_build_input(struct snd_mixer_oss *mixer, struct snd_mix | |||
1111 | return 0; | 1111 | return 0; |
1112 | } | 1112 | } |
1113 | 1113 | ||
1114 | #ifdef CONFIG_PROC_FS | 1114 | #ifdef CONFIG_SND_PROC_FS |
1115 | /* | 1115 | /* |
1116 | */ | 1116 | */ |
1117 | #define MIXER_VOL(name) [SOUND_MIXER_##name] = #name | 1117 | #define MIXER_VOL(name) [SOUND_MIXER_##name] = #name |
@@ -1255,10 +1255,10 @@ static void snd_mixer_oss_proc_done(struct snd_mixer_oss *mixer) | |||
1255 | snd_info_free_entry(mixer->proc_entry); | 1255 | snd_info_free_entry(mixer->proc_entry); |
1256 | mixer->proc_entry = NULL; | 1256 | mixer->proc_entry = NULL; |
1257 | } | 1257 | } |
1258 | #else /* !CONFIG_PROC_FS */ | 1258 | #else /* !CONFIG_SND_PROC_FS */ |
1259 | #define snd_mixer_oss_proc_init(mix) | 1259 | #define snd_mixer_oss_proc_init(mix) |
1260 | #define snd_mixer_oss_proc_done(mix) | 1260 | #define snd_mixer_oss_proc_done(mix) |
1261 | #endif /* CONFIG_PROC_FS */ | 1261 | #endif /* CONFIG_SND_PROC_FS */ |
1262 | 1262 | ||
1263 | static void snd_mixer_oss_build(struct snd_mixer_oss *mixer) | 1263 | static void snd_mixer_oss_build(struct snd_mixer_oss *mixer) |
1264 | { | 1264 | { |
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index b25bcf5b8644..e53794319ef3 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
@@ -1181,7 +1181,7 @@ int snd_pcm_notify(struct snd_pcm_notify *notify, int nfree) | |||
1181 | } | 1181 | } |
1182 | EXPORT_SYMBOL(snd_pcm_notify); | 1182 | EXPORT_SYMBOL(snd_pcm_notify); |
1183 | 1183 | ||
1184 | #ifdef CONFIG_PROC_FS | 1184 | #ifdef CONFIG_SND_PROC_FS |
1185 | /* | 1185 | /* |
1186 | * Info interface | 1186 | * Info interface |
1187 | */ | 1187 | */ |
@@ -1227,10 +1227,10 @@ static void snd_pcm_proc_done(void) | |||
1227 | snd_info_free_entry(snd_pcm_proc_entry); | 1227 | snd_info_free_entry(snd_pcm_proc_entry); |
1228 | } | 1228 | } |
1229 | 1229 | ||
1230 | #else /* !CONFIG_PROC_FS */ | 1230 | #else /* !CONFIG_SND_PROC_FS */ |
1231 | #define snd_pcm_proc_init() | 1231 | #define snd_pcm_proc_init() |
1232 | #define snd_pcm_proc_done() | 1232 | #define snd_pcm_proc_done() |
1233 | #endif /* CONFIG_PROC_FS */ | 1233 | #endif /* CONFIG_SND_PROC_FS */ |
1234 | 1234 | ||
1235 | 1235 | ||
1236 | /* | 1236 | /* |
diff --git a/sound/core/seq/oss/seq_oss.c b/sound/core/seq/oss/seq_oss.c index 72873a46afeb..7354b8bed860 100644 --- a/sound/core/seq/oss/seq_oss.c +++ b/sound/core/seq/oss/seq_oss.c | |||
@@ -45,7 +45,7 @@ MODULE_ALIAS_SNDRV_MINOR(SNDRV_MINOR_OSS_MUSIC); | |||
45 | */ | 45 | */ |
46 | static int register_device(void); | 46 | static int register_device(void); |
47 | static void unregister_device(void); | 47 | static void unregister_device(void); |
48 | #ifdef CONFIG_PROC_FS | 48 | #ifdef CONFIG_SND_PROC_FS |
49 | static int register_proc(void); | 49 | static int register_proc(void); |
50 | static void unregister_proc(void); | 50 | static void unregister_proc(void); |
51 | #else | 51 | #else |
@@ -261,7 +261,7 @@ unregister_device(void) | |||
261 | * /proc interface | 261 | * /proc interface |
262 | */ | 262 | */ |
263 | 263 | ||
264 | #ifdef CONFIG_PROC_FS | 264 | #ifdef CONFIG_SND_PROC_FS |
265 | 265 | ||
266 | static struct snd_info_entry *info_entry; | 266 | static struct snd_info_entry *info_entry; |
267 | 267 | ||
@@ -303,4 +303,4 @@ unregister_proc(void) | |||
303 | snd_info_free_entry(info_entry); | 303 | snd_info_free_entry(info_entry); |
304 | info_entry = NULL; | 304 | info_entry = NULL; |
305 | } | 305 | } |
306 | #endif /* CONFIG_PROC_FS */ | 306 | #endif /* CONFIG_SND_PROC_FS */ |
diff --git a/sound/core/seq/oss/seq_oss_init.c b/sound/core/seq/oss/seq_oss_init.c index 2de3feff70d0..b1221b29728e 100644 --- a/sound/core/seq/oss/seq_oss_init.c +++ b/sound/core/seq/oss/seq_oss_init.c | |||
@@ -479,8 +479,7 @@ snd_seq_oss_reset(struct seq_oss_devinfo *dp) | |||
479 | snd_seq_oss_timer_stop(dp->timer); | 479 | snd_seq_oss_timer_stop(dp->timer); |
480 | } | 480 | } |
481 | 481 | ||
482 | 482 | #ifdef CONFIG_SND_PROC_FS | |
483 | #ifdef CONFIG_PROC_FS | ||
484 | /* | 483 | /* |
485 | * misc. functions for proc interface | 484 | * misc. functions for proc interface |
486 | */ | 485 | */ |
@@ -531,4 +530,4 @@ snd_seq_oss_system_info_read(struct snd_info_buffer *buf) | |||
531 | snd_seq_oss_readq_info_read(dp->readq, buf); | 530 | snd_seq_oss_readq_info_read(dp->readq, buf); |
532 | } | 531 | } |
533 | } | 532 | } |
534 | #endif /* CONFIG_PROC_FS */ | 533 | #endif /* CONFIG_SND_PROC_FS */ |
diff --git a/sound/core/seq/oss/seq_oss_midi.c b/sound/core/seq/oss/seq_oss_midi.c index 96e8395ae586..aaff9ee32695 100644 --- a/sound/core/seq/oss/seq_oss_midi.c +++ b/sound/core/seq/oss/seq_oss_midi.c | |||
@@ -665,7 +665,7 @@ snd_seq_oss_midi_make_info(struct seq_oss_devinfo *dp, int dev, struct midi_info | |||
665 | } | 665 | } |
666 | 666 | ||
667 | 667 | ||
668 | #ifdef CONFIG_PROC_FS | 668 | #ifdef CONFIG_SND_PROC_FS |
669 | /* | 669 | /* |
670 | * proc interface | 670 | * proc interface |
671 | */ | 671 | */ |
@@ -705,4 +705,4 @@ snd_seq_oss_midi_info_read(struct snd_info_buffer *buf) | |||
705 | snd_use_lock_free(&mdev->use_lock); | 705 | snd_use_lock_free(&mdev->use_lock); |
706 | } | 706 | } |
707 | } | 707 | } |
708 | #endif /* CONFIG_PROC_FS */ | 708 | #endif /* CONFIG_SND_PROC_FS */ |
diff --git a/sound/core/seq/oss/seq_oss_readq.c b/sound/core/seq/oss/seq_oss_readq.c index c080c73cea04..ccd893566f1d 100644 --- a/sound/core/seq/oss/seq_oss_readq.c +++ b/sound/core/seq/oss/seq_oss_readq.c | |||
@@ -222,7 +222,7 @@ snd_seq_oss_readq_put_timestamp(struct seq_oss_readq *q, unsigned long curt, int | |||
222 | } | 222 | } |
223 | 223 | ||
224 | 224 | ||
225 | #ifdef CONFIG_PROC_FS | 225 | #ifdef CONFIG_SND_PROC_FS |
226 | /* | 226 | /* |
227 | * proc interface | 227 | * proc interface |
228 | */ | 228 | */ |
@@ -233,4 +233,4 @@ snd_seq_oss_readq_info_read(struct seq_oss_readq *q, struct snd_info_buffer *buf | |||
233 | (waitqueue_active(&q->midi_sleep) ? "sleeping":"running"), | 233 | (waitqueue_active(&q->midi_sleep) ? "sleeping":"running"), |
234 | q->qlen, q->input_time); | 234 | q->qlen, q->input_time); |
235 | } | 235 | } |
236 | #endif /* CONFIG_PROC_FS */ | 236 | #endif /* CONFIG_SND_PROC_FS */ |
diff --git a/sound/core/seq/oss/seq_oss_synth.c b/sound/core/seq/oss/seq_oss_synth.c index 48e4fe1b68ab..0f3b38184fe5 100644 --- a/sound/core/seq/oss/seq_oss_synth.c +++ b/sound/core/seq/oss/seq_oss_synth.c | |||
@@ -630,7 +630,7 @@ snd_seq_oss_synth_make_info(struct seq_oss_devinfo *dp, int dev, struct synth_in | |||
630 | } | 630 | } |
631 | 631 | ||
632 | 632 | ||
633 | #ifdef CONFIG_PROC_FS | 633 | #ifdef CONFIG_SND_PROC_FS |
634 | /* | 634 | /* |
635 | * proc interface | 635 | * proc interface |
636 | */ | 636 | */ |
@@ -658,4 +658,4 @@ snd_seq_oss_synth_info_read(struct snd_info_buffer *buf) | |||
658 | snd_use_lock_free(&rec->use_lock); | 658 | snd_use_lock_free(&rec->use_lock); |
659 | } | 659 | } |
660 | } | 660 | } |
661 | #endif /* CONFIG_PROC_FS */ | 661 | #endif /* CONFIG_SND_PROC_FS */ |
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c index edbdab85fc02..b64f20deba90 100644 --- a/sound/core/seq/seq_clientmgr.c +++ b/sound/core/seq/seq_clientmgr.c | |||
@@ -2447,7 +2447,7 @@ EXPORT_SYMBOL(snd_seq_kernel_client_write_poll); | |||
2447 | 2447 | ||
2448 | /*---------------------------------------------------------------------------*/ | 2448 | /*---------------------------------------------------------------------------*/ |
2449 | 2449 | ||
2450 | #ifdef CONFIG_PROC_FS | 2450 | #ifdef CONFIG_SND_PROC_FS |
2451 | /* | 2451 | /* |
2452 | * /proc interface | 2452 | * /proc interface |
2453 | */ | 2453 | */ |
@@ -2549,7 +2549,7 @@ void snd_seq_info_clients_read(struct snd_info_entry *entry, | |||
2549 | snd_seq_client_unlock(client); | 2549 | snd_seq_client_unlock(client); |
2550 | } | 2550 | } |
2551 | } | 2551 | } |
2552 | #endif /* CONFIG_PROC_FS */ | 2552 | #endif /* CONFIG_SND_PROC_FS */ |
2553 | 2553 | ||
2554 | /*---------------------------------------------------------------------------*/ | 2554 | /*---------------------------------------------------------------------------*/ |
2555 | 2555 | ||
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c index d99f99d61983..288af56a43cd 100644 --- a/sound/core/seq/seq_device.c +++ b/sound/core/seq/seq_device.c | |||
@@ -72,7 +72,7 @@ static struct bus_type snd_seq_bus_type = { | |||
72 | /* | 72 | /* |
73 | * proc interface -- just for compatibility | 73 | * proc interface -- just for compatibility |
74 | */ | 74 | */ |
75 | #ifdef CONFIG_PROC_FS | 75 | #ifdef CONFIG_SND_PROC_FS |
76 | static struct snd_info_entry *info_entry; | 76 | static struct snd_info_entry *info_entry; |
77 | 77 | ||
78 | static int print_dev_info(struct device *dev, void *data) | 78 | static int print_dev_info(struct device *dev, void *data) |
diff --git a/sound/core/seq/seq_info.h b/sound/core/seq/seq_info.h index 4892a7f35c08..f8549f81a645 100644 --- a/sound/core/seq/seq_info.h +++ b/sound/core/seq/seq_info.h | |||
@@ -29,7 +29,7 @@ void snd_seq_info_timer_read(struct snd_info_entry *entry, struct snd_info_buffe | |||
29 | void snd_seq_info_queues_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer); | 29 | void snd_seq_info_queues_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer); |
30 | 30 | ||
31 | 31 | ||
32 | #ifdef CONFIG_PROC_FS | 32 | #ifdef CONFIG_SND_PROC_FS |
33 | int snd_seq_info_init( void ); | 33 | int snd_seq_info_init( void ); |
34 | int snd_seq_info_done( void ); | 34 | int snd_seq_info_done( void ); |
35 | #else | 35 | #else |
diff --git a/sound/core/seq/seq_queue.c b/sound/core/seq/seq_queue.c index a0cda38205b9..7dfd0f429410 100644 --- a/sound/core/seq/seq_queue.c +++ b/sound/core/seq/seq_queue.c | |||
@@ -753,7 +753,7 @@ int snd_seq_control_queue(struct snd_seq_event *ev, int atomic, int hop) | |||
753 | 753 | ||
754 | /*----------------------------------------------------------------*/ | 754 | /*----------------------------------------------------------------*/ |
755 | 755 | ||
756 | #ifdef CONFIG_PROC_FS | 756 | #ifdef CONFIG_SND_PROC_FS |
757 | /* exported to seq_info.c */ | 757 | /* exported to seq_info.c */ |
758 | void snd_seq_info_queues_read(struct snd_info_entry *entry, | 758 | void snd_seq_info_queues_read(struct snd_info_entry *entry, |
759 | struct snd_info_buffer *buffer) | 759 | struct snd_info_buffer *buffer) |
@@ -787,5 +787,5 @@ void snd_seq_info_queues_read(struct snd_info_entry *entry, | |||
787 | queuefree(q); | 787 | queuefree(q); |
788 | } | 788 | } |
789 | } | 789 | } |
790 | #endif /* CONFIG_PROC_FS */ | 790 | #endif /* CONFIG_SND_PROC_FS */ |
791 | 791 | ||
diff --git a/sound/core/seq/seq_timer.c b/sound/core/seq/seq_timer.c index 186f1611103c..82b220c769c1 100644 --- a/sound/core/seq/seq_timer.c +++ b/sound/core/seq/seq_timer.c | |||
@@ -422,7 +422,7 @@ snd_seq_tick_time_t snd_seq_timer_get_cur_tick(struct snd_seq_timer *tmr) | |||
422 | } | 422 | } |
423 | 423 | ||
424 | 424 | ||
425 | #ifdef CONFIG_PROC_FS | 425 | #ifdef CONFIG_SND_PROC_FS |
426 | /* exported to seq_info.c */ | 426 | /* exported to seq_info.c */ |
427 | void snd_seq_info_timer_read(struct snd_info_entry *entry, | 427 | void snd_seq_info_timer_read(struct snd_info_entry *entry, |
428 | struct snd_info_buffer *buffer) | 428 | struct snd_info_buffer *buffer) |
@@ -449,5 +449,5 @@ void snd_seq_info_timer_read(struct snd_info_entry *entry, | |||
449 | queuefree(q); | 449 | queuefree(q); |
450 | } | 450 | } |
451 | } | 451 | } |
452 | #endif /* CONFIG_PROC_FS */ | 452 | #endif /* CONFIG_SND_PROC_FS */ |
453 | 453 | ||
diff --git a/sound/core/sound.c b/sound/core/sound.c index e5d37bd7c226..175f9e4e01c8 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
@@ -330,7 +330,7 @@ int snd_unregister_device(struct device *dev) | |||
330 | } | 330 | } |
331 | EXPORT_SYMBOL(snd_unregister_device); | 331 | EXPORT_SYMBOL(snd_unregister_device); |
332 | 332 | ||
333 | #ifdef CONFIG_PROC_FS | 333 | #ifdef CONFIG_SND_PROC_FS |
334 | /* | 334 | /* |
335 | * INFO PART | 335 | * INFO PART |
336 | */ | 336 | */ |
@@ -391,7 +391,7 @@ int __init snd_minor_info_init(void) | |||
391 | entry->c.text.read = snd_minor_info_read; | 391 | entry->c.text.read = snd_minor_info_read; |
392 | return snd_info_register(entry); /* freed in error path */ | 392 | return snd_info_register(entry); /* freed in error path */ |
393 | } | 393 | } |
394 | #endif /* CONFIG_PROC_FS */ | 394 | #endif /* CONFIG_SND_PROC_FS */ |
395 | 395 | ||
396 | /* | 396 | /* |
397 | * INIT PART | 397 | * INIT PART |
diff --git a/sound/core/sound_oss.c b/sound/core/sound_oss.c index 86e2d91dd375..0ca9d72b2273 100644 --- a/sound/core/sound_oss.c +++ b/sound/core/sound_oss.c | |||
@@ -207,7 +207,7 @@ EXPORT_SYMBOL(snd_unregister_oss_device); | |||
207 | * INFO PART | 207 | * INFO PART |
208 | */ | 208 | */ |
209 | 209 | ||
210 | #ifdef CONFIG_PROC_FS | 210 | #ifdef CONFIG_SND_PROC_FS |
211 | static const char *snd_oss_device_type_name(int type) | 211 | static const char *snd_oss_device_type_name(int type) |
212 | { | 212 | { |
213 | switch (type) { | 213 | switch (type) { |
@@ -259,4 +259,4 @@ int __init snd_minor_info_oss_init(void) | |||
259 | entry->c.text.read = snd_minor_info_oss_read; | 259 | entry->c.text.read = snd_minor_info_oss_read; |
260 | return snd_info_register(entry); /* freed in error path */ | 260 | return snd_info_register(entry); /* freed in error path */ |
261 | } | 261 | } |
262 | #endif /* CONFIG_PROC_FS */ | 262 | #endif /* CONFIG_SND_PROC_FS */ |
diff --git a/sound/core/timer.c b/sound/core/timer.c index a9a1a047c521..31f40f03e5b7 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c | |||
@@ -1034,7 +1034,7 @@ static int snd_timer_register_system(void) | |||
1034 | return snd_timer_global_register(timer); | 1034 | return snd_timer_global_register(timer); |
1035 | } | 1035 | } |
1036 | 1036 | ||
1037 | #ifdef CONFIG_PROC_FS | 1037 | #ifdef CONFIG_SND_PROC_FS |
1038 | /* | 1038 | /* |
1039 | * Info interface | 1039 | * Info interface |
1040 | */ | 1040 | */ |
@@ -1104,7 +1104,7 @@ static void __exit snd_timer_proc_done(void) | |||
1104 | { | 1104 | { |
1105 | snd_info_free_entry(snd_timer_proc_entry); | 1105 | snd_info_free_entry(snd_timer_proc_entry); |
1106 | } | 1106 | } |
1107 | #else /* !CONFIG_PROC_FS */ | 1107 | #else /* !CONFIG_SND_PROC_FS */ |
1108 | #define snd_timer_proc_init() | 1108 | #define snd_timer_proc_init() |
1109 | #define snd_timer_proc_done() | 1109 | #define snd_timer_proc_done() |
1110 | #endif | 1110 | #endif |