diff options
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.c | 5 | ||||
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.h | 10 | ||||
-rw-r--r-- | sound/pci/cs46xx/dsp_spos.c | 2 | ||||
-rw-r--r-- | sound/pci/cs46xx/dsp_spos_scb_lib.c | 4 |
4 files changed, 21 insertions, 0 deletions
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index 0ec0592a6e6f..8fb275d6eb77 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c | |||
@@ -2747,6 +2747,7 @@ int __devinit snd_cs46xx_gameport(struct snd_cs46xx *chip) { return -ENOSYS; } | |||
2747 | static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) { } | 2747 | static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) { } |
2748 | #endif /* CONFIG_GAMEPORT */ | 2748 | #endif /* CONFIG_GAMEPORT */ |
2749 | 2749 | ||
2750 | #ifdef CONFIG_PROC_FS | ||
2750 | /* | 2751 | /* |
2751 | * proc interface | 2752 | * proc interface |
2752 | */ | 2753 | */ |
@@ -2800,6 +2801,10 @@ static int snd_cs46xx_proc_done(struct snd_cs46xx *chip) | |||
2800 | #endif | 2801 | #endif |
2801 | return 0; | 2802 | return 0; |
2802 | } | 2803 | } |
2804 | #else /* !CONFIG_PROC_FS */ | ||
2805 | #define snd_cs46xx_proc_init(card, chip) | ||
2806 | #define snd_cs46xx_proc_done(chip) | ||
2807 | #endif | ||
2803 | 2808 | ||
2804 | /* | 2809 | /* |
2805 | * stop the h/w | 2810 | * stop the h/w |
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, |
diff --git a/sound/pci/cs46xx/dsp_spos.c b/sound/pci/cs46xx/dsp_spos.c index ac98917a1475..445a448949e7 100644 --- a/sound/pci/cs46xx/dsp_spos.c +++ b/sound/pci/cs46xx/dsp_spos.c | |||
@@ -439,6 +439,7 @@ cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name, int symb | |||
439 | } | 439 | } |
440 | 440 | ||
441 | 441 | ||
442 | #ifdef CONFIG_PROC_FS | ||
442 | static struct dsp_symbol_entry * | 443 | static struct dsp_symbol_entry * |
443 | cs46xx_dsp_lookup_symbol_addr (struct snd_cs46xx * chip, u32 address, int symbol_type) | 444 | cs46xx_dsp_lookup_symbol_addr (struct snd_cs46xx * chip, u32 address, int symbol_type) |
444 | { | 445 | { |
@@ -912,6 +913,7 @@ int cs46xx_dsp_proc_done (struct snd_cs46xx *chip) | |||
912 | 913 | ||
913 | return 0; | 914 | return 0; |
914 | } | 915 | } |
916 | #endif /* CONFIG_PROC_FS */ | ||
915 | 917 | ||
916 | static int debug_tree; | 918 | static int debug_tree; |
917 | static void _dsp_create_task_tree (struct snd_cs46xx *chip, u32 * task_data, | 919 | static void _dsp_create_task_tree (struct snd_cs46xx *chip, u32 * task_data, |
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, |