aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-12-01 04:49:58 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:30:08 -0500
commitadf1b3d25e50dbab48fdd21006bea2dd5a4cb3a8 (patch)
treee520ddca1f0cd5e9bb9afd14f3f226e2b1596e9a /sound
parent8cb7b63f5baf7b5e788f0d632d5ebd018856416f (diff)
[ALSA] Optimize for config without PROC_FS (pci drivers)
Optimize the code when compiled without CONFIG_PROC_FS for some pci drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/ac97/ac97_codec.c38
-rw-r--r--sound/pci/ac97/ac97_local.h1
-rw-r--r--sound/pci/ac97/ac97_proc.c36
-rw-r--r--sound/pci/ac97/ak4531_codec.c8
-rw-r--r--sound/pci/atiixp.c5
-rw-r--r--sound/pci/atiixp_modem.c5
-rw-r--r--sound/pci/ca0106/ca0106_main.c2
-rw-r--r--sound/pci/ca0106/ca0106_proc.c3
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.c5
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.h10
-rw-r--r--sound/pci/cs46xx/dsp_spos.c2
-rw-r--r--sound/pci/cs46xx/dsp_spos_scb_lib.c4
-rw-r--r--sound/pci/emu10k1/emu10k1_main.c2
-rw-r--r--sound/pci/emu10k1/emuproc.c2
-rw-r--r--sound/pci/intel8x0.c4
-rw-r--r--sound/pci/intel8x0m.c5
16 files changed, 92 insertions, 40 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c
index abc83fa85bcd..17c3ddac35cc 100644
--- a/sound/pci/ac97/ac97_codec.c
+++ b/sound/pci/ac97/ac97_codec.c
@@ -184,42 +184,6 @@ static const struct ac97_codec_id snd_ac97_codec_ids[] = {
184{ 0, 0, NULL, NULL, NULL } 184{ 0, 0, NULL, NULL, NULL }
185}; 185};
186 186
187const char *snd_ac97_stereo_enhancements[] =
188{
189 /* 0 */ "No 3D Stereo Enhancement",
190 /* 1 */ "Analog Devices Phat Stereo",
191 /* 2 */ "Creative Stereo Enhancement",
192 /* 3 */ "National Semi 3D Stereo Enhancement",
193 /* 4 */ "YAMAHA Ymersion",
194 /* 5 */ "BBE 3D Stereo Enhancement",
195 /* 6 */ "Crystal Semi 3D Stereo Enhancement",
196 /* 7 */ "Qsound QXpander",
197 /* 8 */ "Spatializer 3D Stereo Enhancement",
198 /* 9 */ "SRS 3D Stereo Enhancement",
199 /* 10 */ "Platform Tech 3D Stereo Enhancement",
200 /* 11 */ "AKM 3D Audio",
201 /* 12 */ "Aureal Stereo Enhancement",
202 /* 13 */ "Aztech 3D Enhancement",
203 /* 14 */ "Binaura 3D Audio Enhancement",
204 /* 15 */ "ESS Technology Stereo Enhancement",
205 /* 16 */ "Harman International VMAx",
206 /* 17 */ "Nvidea/IC Ensemble/KS Waves 3D Stereo Enhancement",
207 /* 18 */ "Philips Incredible Sound",
208 /* 19 */ "Texas Instruments 3D Stereo Enhancement",
209 /* 20 */ "VLSI Technology 3D Stereo Enhancement",
210 /* 21 */ "TriTech 3D Stereo Enhancement",
211 /* 22 */ "Realtek 3D Stereo Enhancement",
212 /* 23 */ "Samsung 3D Stereo Enhancement",
213 /* 24 */ "Wolfson Microelectronics 3D Enhancement",
214 /* 25 */ "Delta Integration 3D Enhancement",
215 /* 26 */ "SigmaTel 3D Enhancement",
216 /* 27 */ "IC Ensemble/KS Waves",
217 /* 28 */ "Rockwell 3D Stereo Enhancement",
218 /* 29 */ "Reserved 29",
219 /* 30 */ "Reserved 30",
220 /* 31 */ "Reserved 31"
221};
222
223 187
224/* 188/*
225 * I/O routines 189 * I/O routines
@@ -1895,10 +1859,12 @@ int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template,
1895 init_MUTEX(&ac97->reg_mutex); 1859 init_MUTEX(&ac97->reg_mutex);
1896 init_MUTEX(&ac97->page_mutex); 1860 init_MUTEX(&ac97->page_mutex);
1897 1861
1862#ifdef CONFIG_PCI
1898 if (ac97->pci) { 1863 if (ac97->pci) {
1899 pci_read_config_word(ac97->pci, PCI_SUBSYSTEM_VENDOR_ID, &ac97->subsystem_vendor); 1864 pci_read_config_word(ac97->pci, PCI_SUBSYSTEM_VENDOR_ID, &ac97->subsystem_vendor);
1900 pci_read_config_word(ac97->pci, PCI_SUBSYSTEM_ID, &ac97->subsystem_device); 1865 pci_read_config_word(ac97->pci, PCI_SUBSYSTEM_ID, &ac97->subsystem_device);
1901 } 1866 }
1867#endif
1902 if (bus->ops->reset) { 1868 if (bus->ops->reset) {
1903 bus->ops->reset(ac97); 1869 bus->ops->reset(ac97);
1904 goto __access_ok; 1870 goto __access_ok;
diff --git a/sound/pci/ac97/ac97_local.h b/sound/pci/ac97/ac97_local.h
index e98587e027d4..a6244c720a1d 100644
--- a/sound/pci/ac97/ac97_local.h
+++ b/sound/pci/ac97/ac97_local.h
@@ -57,7 +57,6 @@ struct ac97_enum {
57 .private_value = (unsigned long)&xenum } 57 .private_value = (unsigned long)&xenum }
58 58
59/* ac97_codec.c */ 59/* ac97_codec.c */
60extern const char *snd_ac97_stereo_enhancements[];
61extern const struct snd_kcontrol_new snd_ac97_controls_3d[]; 60extern const struct snd_kcontrol_new snd_ac97_controls_3d[];
62extern const struct snd_kcontrol_new snd_ac97_controls_spdif[]; 61extern const struct snd_kcontrol_new snd_ac97_controls_spdif[];
63struct snd_kcontrol *snd_ac97_cnew(const struct snd_kcontrol_new *_template, struct snd_ac97 * ac97); 62struct snd_kcontrol *snd_ac97_cnew(const struct snd_kcontrol_new *_template, struct snd_ac97 * ac97);
diff --git a/sound/pci/ac97/ac97_proc.c b/sound/pci/ac97/ac97_proc.c
index 266073201293..7134b3f55fb5 100644
--- a/sound/pci/ac97/ac97_proc.c
+++ b/sound/pci/ac97/ac97_proc.c
@@ -68,6 +68,42 @@ static void snd_ac97_proc_read_functions(struct snd_ac97 *ac97, struct snd_info_
68 } 68 }
69} 69}
70 70
71static const char *snd_ac97_stereo_enhancements[] =
72{
73 /* 0 */ "No 3D Stereo Enhancement",
74 /* 1 */ "Analog Devices Phat Stereo",
75 /* 2 */ "Creative Stereo Enhancement",
76 /* 3 */ "National Semi 3D Stereo Enhancement",
77 /* 4 */ "YAMAHA Ymersion",
78 /* 5 */ "BBE 3D Stereo Enhancement",
79 /* 6 */ "Crystal Semi 3D Stereo Enhancement",
80 /* 7 */ "Qsound QXpander",
81 /* 8 */ "Spatializer 3D Stereo Enhancement",
82 /* 9 */ "SRS 3D Stereo Enhancement",
83 /* 10 */ "Platform Tech 3D Stereo Enhancement",
84 /* 11 */ "AKM 3D Audio",
85 /* 12 */ "Aureal Stereo Enhancement",
86 /* 13 */ "Aztech 3D Enhancement",
87 /* 14 */ "Binaura 3D Audio Enhancement",
88 /* 15 */ "ESS Technology Stereo Enhancement",
89 /* 16 */ "Harman International VMAx",
90 /* 17 */ "Nvidea/IC Ensemble/KS Waves 3D Stereo Enhancement",
91 /* 18 */ "Philips Incredible Sound",
92 /* 19 */ "Texas Instruments 3D Stereo Enhancement",
93 /* 20 */ "VLSI Technology 3D Stereo Enhancement",
94 /* 21 */ "TriTech 3D Stereo Enhancement",
95 /* 22 */ "Realtek 3D Stereo Enhancement",
96 /* 23 */ "Samsung 3D Stereo Enhancement",
97 /* 24 */ "Wolfson Microelectronics 3D Enhancement",
98 /* 25 */ "Delta Integration 3D Enhancement",
99 /* 26 */ "SigmaTel 3D Enhancement",
100 /* 27 */ "IC Ensemble/KS Waves",
101 /* 28 */ "Rockwell 3D Stereo Enhancement",
102 /* 29 */ "Reserved 29",
103 /* 30 */ "Reserved 30",
104 /* 31 */ "Reserved 31"
105};
106
71static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx) 107static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx)
72{ 108{
73 char name[64]; 109 char name[64];
diff --git a/sound/pci/ac97/ak4531_codec.c b/sound/pci/ac97/ak4531_codec.c
index 3eb885584e9a..dcfb5036ff8b 100644
--- a/sound/pci/ac97/ak4531_codec.c
+++ b/sound/pci/ac97/ak4531_codec.c
@@ -30,7 +30,11 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>");
30MODULE_DESCRIPTION("Universal routines for AK4531 codec"); 30MODULE_DESCRIPTION("Universal routines for AK4531 codec");
31MODULE_LICENSE("GPL"); 31MODULE_LICENSE("GPL");
32 32
33#ifdef CONFIG_PROC_FS
33static void snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531); 34static void snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531);
35#else
36#define snd_ak4531_proc_init(card,ak)
37#endif
34 38
35/* 39/*
36 * 40 *
@@ -425,8 +429,9 @@ void snd_ak4531_resume(struct snd_ak4531 *ak4531)
425} 429}
426#endif 430#endif
427 431
432#ifdef CONFIG_PROC_FS
428/* 433/*
429 434 * /proc interface
430 */ 435 */
431 436
432static void snd_ak4531_proc_read(struct snd_info_entry *entry, 437static void snd_ak4531_proc_read(struct snd_info_entry *entry,
@@ -448,6 +453,7 @@ static void snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak453
448 if (! snd_card_proc_new(card, "ak4531", &entry)) 453 if (! snd_card_proc_new(card, "ak4531", &entry))
449 snd_info_set_text_ops(entry, ak4531, 1024, snd_ak4531_proc_read); 454 snd_info_set_text_ops(entry, ak4531, 1024, snd_ak4531_proc_read);
450} 455}
456#endif
451 457
452EXPORT_SYMBOL(snd_ak4531_mixer); 458EXPORT_SYMBOL(snd_ak4531_mixer);
453#ifdef CONFIG_PM 459#ifdef CONFIG_PM
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c
index a039284c7c54..33e0664a1925 100644
--- a/sound/pci/atiixp.c
+++ b/sound/pci/atiixp.c
@@ -1477,6 +1477,7 @@ static int snd_atiixp_resume(struct pci_dev *pci)
1477#endif /* CONFIG_PM */ 1477#endif /* CONFIG_PM */
1478 1478
1479 1479
1480#ifdef CONFIG_PROC_FS
1480/* 1481/*
1481 * proc interface for register dump 1482 * proc interface for register dump
1482 */ 1483 */
@@ -1498,7 +1499,9 @@ static void __devinit snd_atiixp_proc_init(struct atiixp *chip)
1498 if (! snd_card_proc_new(chip->card, "atiixp", &entry)) 1499 if (! snd_card_proc_new(chip->card, "atiixp", &entry))
1499 snd_info_set_text_ops(entry, chip, 1024, snd_atiixp_proc_read); 1500 snd_info_set_text_ops(entry, chip, 1024, snd_atiixp_proc_read);
1500} 1501}
1501 1502#else /* !CONFIG_PROC_FS */
1503#define snd_atiixp_proc_init(chip)
1504#endif
1502 1505
1503 1506
1504/* 1507/*
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c
index 73f1f2b1a355..8d8fd5a4ed35 100644
--- a/sound/pci/atiixp_modem.c
+++ b/sound/pci/atiixp_modem.c
@@ -1156,6 +1156,7 @@ static int snd_atiixp_resume(struct pci_dev *pci)
1156#endif /* CONFIG_PM */ 1156#endif /* CONFIG_PM */
1157 1157
1158 1158
1159#ifdef CONFIG_PROC_FS
1159/* 1160/*
1160 * proc interface for register dump 1161 * proc interface for register dump
1161 */ 1162 */
@@ -1177,7 +1178,9 @@ static void __devinit snd_atiixp_proc_init(struct atiixp_modem *chip)
1177 if (! snd_card_proc_new(chip->card, "atiixp-modem", &entry)) 1178 if (! snd_card_proc_new(chip->card, "atiixp-modem", &entry))
1178 snd_info_set_text_ops(entry, chip, 1024, snd_atiixp_proc_read); 1179 snd_info_set_text_ops(entry, chip, 1024, snd_atiixp_proc_read);
1179} 1180}
1180 1181#else
1182#define snd_atiixp_proc_init(chip)
1183#endif
1181 1184
1182 1185
1183/* 1186/*
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c
index 744f97183723..5964cdc93f73 100644
--- a/sound/pci/ca0106/ca0106_main.c
+++ b/sound/pci/ca0106/ca0106_main.c
@@ -1456,7 +1456,9 @@ static int __devinit snd_ca0106_probe(struct pci_dev *pci,
1456 } 1456 }
1457 snd_printdd(" done.\n"); 1457 snd_printdd(" done.\n");
1458 1458
1459#ifdef CONFIG_PROC_FS
1459 snd_ca0106_proc_init(chip); 1460 snd_ca0106_proc_init(chip);
1461#endif
1460 1462
1461 if ((err = snd_card_register(card)) < 0) { 1463 if ((err = snd_card_register(card)) < 0) {
1462 snd_card_free(card); 1464 snd_card_free(card);
diff --git a/sound/pci/ca0106/ca0106_proc.c b/sound/pci/ca0106/ca0106_proc.c
index 94b622599386..63757273bfb7 100644
--- a/sound/pci/ca0106/ca0106_proc.c
+++ b/sound/pci/ca0106/ca0106_proc.c
@@ -77,6 +77,8 @@
77#include "ca0106.h" 77#include "ca0106.h"
78 78
79 79
80#ifdef CONFIG_PROC_FS
81
80struct snd_ca0106_category_str { 82struct snd_ca0106_category_str {
81 int val; 83 int val;
82 const char *name; 84 const char *name;
@@ -459,3 +461,4 @@ int __devinit snd_ca0106_proc_init(struct snd_ca0106 * emu)
459 return 0; 461 return 0;
460} 462}
461 463
464#endif /* CONFIG_PROC_FS */
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c
index 0ec0592a6e6f..8fb275d6eb77 100644
--- a/sound/pci/cs46xx/cs46xx_lib.c
+++ b/sound/pci/cs46xx/cs46xx_lib.c
@@ -2747,6 +2747,7 @@ int __devinit snd_cs46xx_gameport(struct snd_cs46xx *chip) { return -ENOSYS; }
2747static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) { } 2747static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) { }
2748#endif /* CONFIG_GAMEPORT */ 2748#endif /* CONFIG_GAMEPORT */
2749 2749
2750#ifdef CONFIG_PROC_FS
2750/* 2751/*
2751 * proc interface 2752 * proc interface
2752 */ 2753 */
@@ -2800,6 +2801,10 @@ static int snd_cs46xx_proc_done(struct snd_cs46xx *chip)
2800#endif 2801#endif
2801 return 0; 2802 return 0;
2802} 2803}
2804#else /* !CONFIG_PROC_FS */
2805#define snd_cs46xx_proc_init(card, chip)
2806#define snd_cs46xx_proc_done(chip)
2807#endif
2803 2808
2804/* 2809/*
2805 * stop the h/w 2810 * stop the h/w
diff --git a/sound/pci/cs46xx/cs46xx_lib.h b/sound/pci/cs46xx/cs46xx_lib.h
index 8b4a4aeaf85f..f75750c2bd24 100644
--- a/sound/pci/cs46xx/cs46xx_lib.h
+++ b/sound/pci/cs46xx/cs46xx_lib.h
@@ -88,8 +88,13 @@ void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip);
88int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module); 88int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module);
89struct dsp_symbol_entry *cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name, 89struct dsp_symbol_entry *cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name,
90 int symbol_type); 90 int symbol_type);
91#ifdef CONFIG_PROC_FS
91int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip); 92int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip);
92int cs46xx_dsp_proc_done (struct snd_cs46xx *chip); 93int cs46xx_dsp_proc_done (struct snd_cs46xx *chip);
94#else
95#define cs46xx_dsp_proc_init(card, chip)
96#define cs46xx_dsp_proc_done(chip)
97#endif
93int cs46xx_dsp_scb_and_task_init (struct snd_cs46xx *chip); 98int cs46xx_dsp_scb_and_task_init (struct snd_cs46xx *chip);
94int snd_cs46xx_download (struct snd_cs46xx *chip, u32 *src, unsigned long offset, 99int snd_cs46xx_download (struct snd_cs46xx *chip, u32 *src, unsigned long offset,
95 unsigned long len); 100 unsigned long len);
@@ -106,9 +111,14 @@ int cs46xx_dsp_disable_adc_capture (struct snd_cs46xx *chip);
106int cs46xx_poke_via_dsp (struct snd_cs46xx *chip, u32 address, u32 data); 111int cs46xx_poke_via_dsp (struct snd_cs46xx *chip, u32 address, u32 data);
107struct dsp_scb_descriptor * cs46xx_dsp_create_scb (struct snd_cs46xx *chip, char * name, 112struct dsp_scb_descriptor * cs46xx_dsp_create_scb (struct snd_cs46xx *chip, char * name,
108 u32 * scb_data, u32 dest); 113 u32 * scb_data, u32 dest);
114#ifdef CONFIG_PROC_FS
109void cs46xx_dsp_proc_free_scb_desc (struct dsp_scb_descriptor * scb); 115void cs46xx_dsp_proc_free_scb_desc (struct dsp_scb_descriptor * scb);
110void cs46xx_dsp_proc_register_scb_desc (struct snd_cs46xx *chip, 116void cs46xx_dsp_proc_register_scb_desc (struct snd_cs46xx *chip,
111 struct dsp_scb_descriptor * scb); 117 struct dsp_scb_descriptor * scb);
118#else
119#define cs46xx_dsp_proc_free_scb_desc(scb)
120#define cs46xx_dsp_proc_register_scb_desc(chip, scb)
121#endif
112struct dsp_scb_descriptor * cs46xx_dsp_create_timing_master_scb (struct snd_cs46xx *chip); 122struct dsp_scb_descriptor * cs46xx_dsp_create_timing_master_scb (struct snd_cs46xx *chip);
113struct dsp_scb_descriptor * 123struct dsp_scb_descriptor *
114cs46xx_dsp_create_codec_out_scb(struct snd_cs46xx * chip, 124cs46xx_dsp_create_codec_out_scb(struct snd_cs46xx * chip,
diff --git a/sound/pci/cs46xx/dsp_spos.c b/sound/pci/cs46xx/dsp_spos.c
index ac98917a1475..445a448949e7 100644
--- a/sound/pci/cs46xx/dsp_spos.c
+++ b/sound/pci/cs46xx/dsp_spos.c
@@ -439,6 +439,7 @@ cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name, int symb
439} 439}
440 440
441 441
442#ifdef CONFIG_PROC_FS
442static struct dsp_symbol_entry * 443static struct dsp_symbol_entry *
443cs46xx_dsp_lookup_symbol_addr (struct snd_cs46xx * chip, u32 address, int symbol_type) 444cs46xx_dsp_lookup_symbol_addr (struct snd_cs46xx * chip, u32 address, int symbol_type)
444{ 445{
@@ -912,6 +913,7 @@ int cs46xx_dsp_proc_done (struct snd_cs46xx *chip)
912 913
913 return 0; 914 return 0;
914} 915}
916#endif /* CONFIG_PROC_FS */
915 917
916static int debug_tree; 918static int debug_tree;
917static void _dsp_create_task_tree (struct snd_cs46xx *chip, u32 * task_data, 919static void _dsp_create_task_tree (struct snd_cs46xx *chip, u32 * task_data,
diff --git a/sound/pci/cs46xx/dsp_spos_scb_lib.c b/sound/pci/cs46xx/dsp_spos_scb_lib.c
index 6e865005b269..509aa2b63331 100644
--- a/sound/pci/cs46xx/dsp_spos_scb_lib.c
+++ b/sound/pci/cs46xx/dsp_spos_scb_lib.c
@@ -64,6 +64,7 @@ static void remove_symbol (struct snd_cs46xx * chip, struct dsp_symbol_entry * s
64 64
65} 65}
66 66
67#ifdef CONFIG_PROC_FS
67static void cs46xx_dsp_proc_scb_info_read (struct snd_info_entry *entry, 68static void cs46xx_dsp_proc_scb_info_read (struct snd_info_entry *entry,
68 struct snd_info_buffer *buffer) 69 struct snd_info_buffer *buffer)
69{ 70{
@@ -106,6 +107,7 @@ static void cs46xx_dsp_proc_scb_info_read (struct snd_info_entry *entry,
106 snd_iprintf(buffer,"index [%d] ref_count [%d]\n",scb->index,scb->ref_count); 107 snd_iprintf(buffer,"index [%d] ref_count [%d]\n",scb->index,scb->ref_count);
107 up(&chip->spos_mutex); 108 up(&chip->spos_mutex);
108} 109}
110#endif
109 111
110static void _dsp_unlink_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor * scb) 112static void _dsp_unlink_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor * scb)
111{ 113{
@@ -220,6 +222,7 @@ void cs46xx_dsp_remove_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor *
220} 222}
221 223
222 224
225#ifdef CONFIG_PROC_FS
223void cs46xx_dsp_proc_free_scb_desc (struct dsp_scb_descriptor * scb) 226void cs46xx_dsp_proc_free_scb_desc (struct dsp_scb_descriptor * scb)
224{ 227{
225 if (scb->proc_info) { 228 if (scb->proc_info) {
@@ -275,6 +278,7 @@ out:
275 scb->proc_info = entry; 278 scb->proc_info = entry;
276 } 279 }
277} 280}
281#endif /* CONFIG_PROC_FS */
278 282
279static struct dsp_scb_descriptor * 283static struct dsp_scb_descriptor *
280_dsp_create_generic_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 dest, 284_dsp_create_generic_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 dest,
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c
index cc36b748d9a5..175f8aac8de5 100644
--- a/sound/pci/emu10k1/emu10k1_main.c
+++ b/sound/pci/emu10k1/emu10k1_main.c
@@ -1076,7 +1076,9 @@ int __devinit snd_emu10k1_create(struct snd_card *card,
1076 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, emu, &ops)) < 0) 1076 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, emu, &ops)) < 0)
1077 goto error; 1077 goto error;
1078 1078
1079#ifdef CONFIG_PROC_FS
1079 snd_emu10k1_proc_init(emu); 1080 snd_emu10k1_proc_init(emu);
1081#endif
1080 1082
1081 snd_card_set_dev(card, &pci->dev); 1083 snd_card_set_dev(card, &pci->dev);
1082 *remu = emu; 1084 *remu = emu;
diff --git a/sound/pci/emu10k1/emuproc.c b/sound/pci/emu10k1/emuproc.c
index b88137f91655..90f1c52703a1 100644
--- a/sound/pci/emu10k1/emuproc.c
+++ b/sound/pci/emu10k1/emuproc.c
@@ -32,6 +32,7 @@
32#include <sound/emu10k1.h> 32#include <sound/emu10k1.h>
33#include "p16v.h" 33#include "p16v.h"
34 34
35#ifdef CONFIG_PROC_FS
35static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu, 36static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu,
36 struct snd_info_buffer *buffer, 37 struct snd_info_buffer *buffer,
37 char *title, 38 char *title,
@@ -620,3 +621,4 @@ int __devinit snd_emu10k1_proc_init(struct snd_emu10k1 * emu)
620 } 621 }
621 return 0; 622 return 0;
622} 623}
624#endif /* CONFIG_PROC_FS */
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c
index 5bbc8a047539..d3a4e5e8e044 100644
--- a/sound/pci/intel8x0.c
+++ b/sound/pci/intel8x0.c
@@ -2579,6 +2579,7 @@ static void __devinit intel8x0_measure_ac97_clock(struct intel8x0 *chip)
2579 printk(KERN_INFO "intel8x0: clocking to %d\n", chip->ac97_bus->clock); 2579 printk(KERN_INFO "intel8x0: clocking to %d\n", chip->ac97_bus->clock);
2580} 2580}
2581 2581
2582#ifdef CONFIG_PROC_FS
2582static void snd_intel8x0_proc_read(struct snd_info_entry * entry, 2583static void snd_intel8x0_proc_read(struct snd_info_entry * entry,
2583 struct snd_info_buffer *buffer) 2584 struct snd_info_buffer *buffer)
2584{ 2585{
@@ -2612,6 +2613,9 @@ static void __devinit snd_intel8x0_proc_init(struct intel8x0 * chip)
2612 if (! snd_card_proc_new(chip->card, "intel8x0", &entry)) 2613 if (! snd_card_proc_new(chip->card, "intel8x0", &entry))
2613 snd_info_set_text_ops(entry, chip, 1024, snd_intel8x0_proc_read); 2614 snd_info_set_text_ops(entry, chip, 1024, snd_intel8x0_proc_read);
2614} 2615}
2616#else
2617#define snd_intel8x0_proc_init(x)
2618#endif
2615 2619
2616static int snd_intel8x0_dev_free(struct snd_device *device) 2620static int snd_intel8x0_dev_free(struct snd_device *device)
2617{ 2621{
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c
index 466170e12167..47e26aaa9ad7 100644
--- a/sound/pci/intel8x0m.c
+++ b/sound/pci/intel8x0m.c
@@ -1066,6 +1066,7 @@ static int intel8x0m_resume(struct pci_dev *pci)
1066} 1066}
1067#endif /* CONFIG_PM */ 1067#endif /* CONFIG_PM */
1068 1068
1069#ifdef CONFIG_PROC_FS
1069static void snd_intel8x0m_proc_read(struct snd_info_entry * entry, 1070static void snd_intel8x0m_proc_read(struct snd_info_entry * entry,
1070 struct snd_info_buffer *buffer) 1071 struct snd_info_buffer *buffer)
1071{ 1072{
@@ -1093,6 +1094,10 @@ static void __devinit snd_intel8x0m_proc_init(struct intel8x0m * chip)
1093 if (! snd_card_proc_new(chip->card, "intel8x0m", &entry)) 1094 if (! snd_card_proc_new(chip->card, "intel8x0m", &entry))
1094 snd_info_set_text_ops(entry, chip, 1024, snd_intel8x0m_proc_read); 1095 snd_info_set_text_ops(entry, chip, 1024, snd_intel8x0m_proc_read);
1095} 1096}
1097#else /* !CONFIG_PROC_FS */
1098#define snd_intel8x0m_proc_init(chip)
1099#endif /* CONFIG_PROC_FS */
1100
1096 1101
1097static int snd_intel8x0_dev_free(struct snd_device *device) 1102static int snd_intel8x0_dev_free(struct snd_device *device)
1098{ 1103{