Import 2.1.118
[davej-history.git] / drivers / sound / lowlevel / soundlow.c
blob96fdb94be3e93f78549f9782af4f04e83a8e373d
1 /*
2 * lowlevel/init.c - Calls initialization code for configured drivers.
3 */
5 #include "lowlevel.h"
6 #include <linux/config.h>
7 #include <linux/module.h>
8 #include <linux/init.h>
9 #include "../soundvers.h"
11 #ifdef LOWLEVEL_MODULE
12 char *lowlevel_version = SOUND_VERSION_STRING;
13 #endif
15 extern int attach_aci(void);
16 extern void unload_aci(void);
17 extern int attach_awe(void);
18 extern void unload_awe(void);
19 extern int init_aedsp16(void) __init;
20 extern void uninit_aedsp16(void) __init;
23 * There are two places where you can insert initialization calls of
24 * low level drivers. sound_init_lowlevel_drivers() is called after
25 * the sound driver has been initialized (the normal case)
26 * while sound_preinit_lowlevel_drivers() is called before that.
28 void
29 sound_preinit_lowlevel_drivers(void)
31 #if defined(CONFIG_AEDSP16) && !defined(MODULE)
32 init_aedsp16();
33 #endif
36 void
37 sound_init_lowlevel_drivers(void)
39 #ifdef CONFIG_ACI_MIXER
40 attach_aci();
41 #endif
43 #ifdef CONFIG_AWE32_SYNTH
44 attach_awe();
45 #endif
48 void
49 sound_unload_lowlevel_drivers(void)
51 #ifdef CONFIG_ACI_MIXER
52 unload_aci();
53 #endif
55 #ifdef CONFIG_AWE32_SYNTH
56 unload_awe();
57 #endif
59 #ifdef CONFIG_AEDSP16
60 uninit_aedsp16();
61 #endif
65 EXPORT_SYMBOL(sound_init_lowlevel_drivers);
66 EXPORT_SYMBOL(sound_unload_lowlevel_drivers);
67 EXPORT_SYMBOL(sound_preinit_lowlevel_drivers);