diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-12-01 04:49:58 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:30:08 -0500 |
commit | adf1b3d25e50dbab48fdd21006bea2dd5a4cb3a8 (patch) | |
tree | e520ddca1f0cd5e9bb9afd14f3f226e2b1596e9a /sound/pci/cs46xx/dsp_spos_scb_lib.c | |
parent | 8cb7b63f5baf7b5e788f0d632d5ebd018856416f (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/cs46xx/dsp_spos_scb_lib.c')
-rw-r--r-- | sound/pci/cs46xx/dsp_spos_scb_lib.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 | ||
67 | static void cs46xx_dsp_proc_scb_info_read (struct snd_info_entry *entry, | 68 | static 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 | ||
110 | static void _dsp_unlink_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor * scb) | 112 | static 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 | ||
223 | void cs46xx_dsp_proc_free_scb_desc (struct dsp_scb_descriptor * scb) | 226 | void 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 | ||
279 | static struct dsp_scb_descriptor * | 283 | static 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, |