aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ac97/ak4531_codec.c
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/pci/ac97/ak4531_codec.c
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/pci/ac97/ak4531_codec.c')
-rw-r--r--sound/pci/ac97/ak4531_codec.c8
1 files changed, 7 insertions, 1 deletions
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