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/cs46xx_lib.h | |
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/cs46xx_lib.h')
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
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); | |||
88 | int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module); | 88 | int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module); |
89 | struct dsp_symbol_entry *cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name, | 89 | struct 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 | ||
91 | int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip); | 92 | int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip); |
92 | int cs46xx_dsp_proc_done (struct snd_cs46xx *chip); | 93 | int 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 | ||
93 | int cs46xx_dsp_scb_and_task_init (struct snd_cs46xx *chip); | 98 | int cs46xx_dsp_scb_and_task_init (struct snd_cs46xx *chip); |
94 | int snd_cs46xx_download (struct snd_cs46xx *chip, u32 *src, unsigned long offset, | 99 | int 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); | |||
106 | int cs46xx_poke_via_dsp (struct snd_cs46xx *chip, u32 address, u32 data); | 111 | int cs46xx_poke_via_dsp (struct snd_cs46xx *chip, u32 address, u32 data); |
107 | struct dsp_scb_descriptor * cs46xx_dsp_create_scb (struct snd_cs46xx *chip, char * name, | 112 | struct 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 | ||
109 | void cs46xx_dsp_proc_free_scb_desc (struct dsp_scb_descriptor * scb); | 115 | void cs46xx_dsp_proc_free_scb_desc (struct dsp_scb_descriptor * scb); |
110 | void cs46xx_dsp_proc_register_scb_desc (struct snd_cs46xx *chip, | 116 | void 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 | ||
112 | struct dsp_scb_descriptor * cs46xx_dsp_create_timing_master_scb (struct snd_cs46xx *chip); | 122 | struct dsp_scb_descriptor * cs46xx_dsp_create_timing_master_scb (struct snd_cs46xx *chip); |
113 | struct dsp_scb_descriptor * | 123 | struct dsp_scb_descriptor * |
114 | cs46xx_dsp_create_codec_out_scb(struct snd_cs46xx * chip, | 124 | cs46xx_dsp_create_codec_out_scb(struct snd_cs46xx * chip, |