aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/dev_table.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-10-04 05:17:31 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-04 10:55:32 -0400
commitece7f77b86e53bfe14699fdbcb0f03fdad0a01d6 (patch)
tree7ec7687dadcd6e45d75c8251257eaadae00f6273 /sound/oss/dev_table.c
parentd56b9b9c464a10ab1ee51a4c6190a2b57b8ef7a6 (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.c44
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
18struct audio_operations *audio_devs[MAX_AUDIO_DEV];
19EXPORT_SYMBOL(audio_devs);
20
21int num_audiodevs;
22EXPORT_SYMBOL(num_audiodevs);
23
24struct mixer_operations *mixer_devs[MAX_MIXER_DEV];
25EXPORT_SYMBOL(mixer_devs);
26
27int num_mixers;
28EXPORT_SYMBOL(num_mixers);
29
30struct synth_operations *synth_devs[MAX_SYNTH_DEV+MAX_MIDI_DEV];
31EXPORT_SYMBOL(synth_devs);
32
33int num_synths;
34
35struct midi_operations *midi_devs[MAX_MIDI_DEV];
36EXPORT_SYMBOL(midi_devs);
37
38int num_midis;
39EXPORT_SYMBOL(num_midis);
40
41struct sound_timer_operations *sound_timer_devs[MAX_TIMER_DEV] = {
42 &default_sound_timer, NULL
43};
44EXPORT_SYMBOL(sound_timer_devs);
45
46int num_sound_timers = 1;
47
48
19static int sound_alloc_audiodev(void); 49static int sound_alloc_audiodev(void);
20 50
21int sound_install_audiodrv(int vers, char *name, struct audio_driver *driver, 51int 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}
108EXPORT_SYMBOL(sound_install_audiodrv);
78 109
79int sound_install_mixer(int vers, char *name, struct mixer_operations *driver, 110int 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}
147EXPORT_SYMBOL(sound_install_mixer);
116 148
117void sound_unload_audiodev(int dev) 149void 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}
157EXPORT_SYMBOL(sound_unload_audiodev);
125 158
126static int sound_alloc_audiodev(void) 159static 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}
180EXPORT_SYMBOL(sound_alloc_mididev);
147 181
148int sound_alloc_synthdev(void) 182int 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}
195EXPORT_SYMBOL(sound_alloc_synthdev);
161 196
162int sound_alloc_mixerdev(void) 197int 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}
207EXPORT_SYMBOL(sound_alloc_mixerdev);
172 208
173int sound_alloc_timerdev(void) 209int 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}
222EXPORT_SYMBOL(sound_alloc_timerdev);
186 223
187void sound_unload_mixerdev(int dev) 224void 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}
232EXPORT_SYMBOL(sound_unload_mixerdev);
195 233
196void sound_unload_mididev(int dev) 234void 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}
241EXPORT_SYMBOL(sound_unload_mididev);
203 242
204void sound_unload_synthdev(int dev) 243void 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}
248EXPORT_SYMBOL(sound_unload_synthdev);
209 249
210void sound_unload_timerdev(int dev) 250void 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}
255EXPORT_SYMBOL(sound_unload_timerdev);
256