aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/intel8x0m.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/intel8x0m.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/intel8x0m.c')
-rw-r--r--sound/pci/intel8x0m.c5
1 files changed, 5 insertions, 0 deletions
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{