diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-10-04 05:17:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 10:55:32 -0400 |
commit | ece7f77b86e53bfe14699fdbcb0f03fdad0a01d6 (patch) | |
tree | 7ec7687dadcd6e45d75c8251257eaadae00f6273 /sound/oss/dev_table.c | |
parent | d56b9b9c464a10ab1ee51a4c6190a2b57b8ef7a6 (diff) |
[PATCH] kill sound/oss/*_syms.c
Move all EXPORT_SYMBOL's from sound/oss/*_syms.c to the files with the
actual functions.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound/oss/dev_table.c')
-rw-r--r-- | sound/oss/dev_table.c | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/sound/oss/dev_table.c b/sound/oss/dev_table.c index fb64279f3935..08274c995d06 100644 --- a/sound/oss/dev_table.c +++ b/sound/oss/dev_table.c | |||
@@ -13,9 +13,39 @@ | |||
13 | 13 | ||
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | 15 | ||
16 | #define _DEV_TABLE_C_ | ||
17 | #include "sound_config.h" | 16 | #include "sound_config.h" |
18 | 17 | ||
18 | struct audio_operations *audio_devs[MAX_AUDIO_DEV]; | ||
19 | EXPORT_SYMBOL(audio_devs); | ||
20 | |||
21 | int num_audiodevs; | ||
22 | EXPORT_SYMBOL(num_audiodevs); | ||
23 | |||
24 | struct mixer_operations *mixer_devs[MAX_MIXER_DEV]; | ||
25 | EXPORT_SYMBOL(mixer_devs); | ||
26 | |||
27 | int num_mixers; | ||
28 | EXPORT_SYMBOL(num_mixers); | ||
29 | |||
30 | struct synth_operations *synth_devs[MAX_SYNTH_DEV+MAX_MIDI_DEV]; | ||
31 | EXPORT_SYMBOL(synth_devs); | ||
32 | |||
33 | int num_synths; | ||
34 | |||
35 | struct midi_operations *midi_devs[MAX_MIDI_DEV]; | ||
36 | EXPORT_SYMBOL(midi_devs); | ||
37 | |||
38 | int num_midis; | ||
39 | EXPORT_SYMBOL(num_midis); | ||
40 | |||
41 | struct sound_timer_operations *sound_timer_devs[MAX_TIMER_DEV] = { | ||
42 | &default_sound_timer, NULL | ||
43 | }; | ||
44 | EXPORT_SYMBOL(sound_timer_devs); | ||
45 | |||
46 | int num_sound_timers = 1; | ||
47 | |||
48 | |||
19 | static int sound_alloc_audiodev(void); | 49 | static int sound_alloc_audiodev(void); |
20 | 50 | ||
21 | int sound_install_audiodrv(int vers, char *name, struct audio_driver *driver, | 51 | int sound_install_audiodrv(int vers, char *name, struct audio_driver *driver, |
@@ -75,6 +105,7 @@ int sound_install_audiodrv(int vers, char *name, struct audio_driver *driver, | |||
75 | audio_init_devices(); | 105 | audio_init_devices(); |
76 | return num; | 106 | return num; |
77 | } | 107 | } |
108 | EXPORT_SYMBOL(sound_install_audiodrv); | ||
78 | 109 | ||
79 | int sound_install_mixer(int vers, char *name, struct mixer_operations *driver, | 110 | int sound_install_mixer(int vers, char *name, struct mixer_operations *driver, |
80 | int driver_size, void *devc) | 111 | int driver_size, void *devc) |
@@ -113,6 +144,7 @@ int sound_install_mixer(int vers, char *name, struct mixer_operations *driver, | |||
113 | mixer_devs[n] = op; | 144 | mixer_devs[n] = op; |
114 | return n; | 145 | return n; |
115 | } | 146 | } |
147 | EXPORT_SYMBOL(sound_install_mixer); | ||
116 | 148 | ||
117 | void sound_unload_audiodev(int dev) | 149 | void sound_unload_audiodev(int dev) |
118 | { | 150 | { |
@@ -122,6 +154,7 @@ void sound_unload_audiodev(int dev) | |||
122 | unregister_sound_dsp((dev<<4)+3); | 154 | unregister_sound_dsp((dev<<4)+3); |
123 | } | 155 | } |
124 | } | 156 | } |
157 | EXPORT_SYMBOL(sound_unload_audiodev); | ||
125 | 158 | ||
126 | static int sound_alloc_audiodev(void) | 159 | static int sound_alloc_audiodev(void) |
127 | { | 160 | { |
@@ -144,6 +177,7 @@ int sound_alloc_mididev(void) | |||
144 | num_midis = i + 1; | 177 | num_midis = i + 1; |
145 | return i; | 178 | return i; |
146 | } | 179 | } |
180 | EXPORT_SYMBOL(sound_alloc_mididev); | ||
147 | 181 | ||
148 | int sound_alloc_synthdev(void) | 182 | int sound_alloc_synthdev(void) |
149 | { | 183 | { |
@@ -158,6 +192,7 @@ int sound_alloc_synthdev(void) | |||
158 | } | 192 | } |
159 | return -1; | 193 | return -1; |
160 | } | 194 | } |
195 | EXPORT_SYMBOL(sound_alloc_synthdev); | ||
161 | 196 | ||
162 | int sound_alloc_mixerdev(void) | 197 | int sound_alloc_mixerdev(void) |
163 | { | 198 | { |
@@ -169,6 +204,7 @@ int sound_alloc_mixerdev(void) | |||
169 | num_mixers = i + 1; | 204 | num_mixers = i + 1; |
170 | return i; | 205 | return i; |
171 | } | 206 | } |
207 | EXPORT_SYMBOL(sound_alloc_mixerdev); | ||
172 | 208 | ||
173 | int sound_alloc_timerdev(void) | 209 | int sound_alloc_timerdev(void) |
174 | { | 210 | { |
@@ -183,6 +219,7 @@ int sound_alloc_timerdev(void) | |||
183 | } | 219 | } |
184 | return -1; | 220 | return -1; |
185 | } | 221 | } |
222 | EXPORT_SYMBOL(sound_alloc_timerdev); | ||
186 | 223 | ||
187 | void sound_unload_mixerdev(int dev) | 224 | void sound_unload_mixerdev(int dev) |
188 | { | 225 | { |
@@ -192,6 +229,7 @@ void sound_unload_mixerdev(int dev) | |||
192 | num_mixers--; | 229 | num_mixers--; |
193 | } | 230 | } |
194 | } | 231 | } |
232 | EXPORT_SYMBOL(sound_unload_mixerdev); | ||
195 | 233 | ||
196 | void sound_unload_mididev(int dev) | 234 | void sound_unload_mididev(int dev) |
197 | { | 235 | { |
@@ -200,15 +238,19 @@ void sound_unload_mididev(int dev) | |||
200 | unregister_sound_midi((dev<<4)+2); | 238 | unregister_sound_midi((dev<<4)+2); |
201 | } | 239 | } |
202 | } | 240 | } |
241 | EXPORT_SYMBOL(sound_unload_mididev); | ||
203 | 242 | ||
204 | void sound_unload_synthdev(int dev) | 243 | void sound_unload_synthdev(int dev) |
205 | { | 244 | { |
206 | if (dev != -1) | 245 | if (dev != -1) |
207 | synth_devs[dev] = NULL; | 246 | synth_devs[dev] = NULL; |
208 | } | 247 | } |
248 | EXPORT_SYMBOL(sound_unload_synthdev); | ||
209 | 249 | ||
210 | void sound_unload_timerdev(int dev) | 250 | void sound_unload_timerdev(int dev) |
211 | { | 251 | { |
212 | if (dev != -1) | 252 | if (dev != -1) |
213 | sound_timer_devs[dev] = NULL; | 253 | sound_timer_devs[dev] = NULL; |
214 | } | 254 | } |
255 | EXPORT_SYMBOL(sound_unload_timerdev); | ||
256 | |||