aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ac97/ak4531_codec.c
diff options
context:
space:
mode:
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 3eb885584e9a8..dcfb5036ff8bd 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>");
MODULE_DESCRIPTION("Universal routines for AK4531 codec");
MODULE_LICENSE("GPL");
+#ifdef CONFIG_PROC_FS
static void snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531);
+#else
+#define snd_ak4531_proc_init(card,ak)
+#endif
/*
*
@@ -425,8 +429,9 @@ void snd_ak4531_resume(struct snd_ak4531 *ak4531)
}
#endif
+#ifdef CONFIG_PROC_FS
/*
-
+ * /proc interface
*/
static 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
if (! snd_card_proc_new(card, "ak4531", &entry))
snd_info_set_text_ops(entry, ak4531, 1024, snd_ak4531_proc_read);
}
+#endif
EXPORT_SYMBOL(snd_ak4531_mixer);
#ifdef CONFIG_PM