patch-2.1.6 linux/drivers/sound/lowlevel/init.c

Next file: linux/drivers/sound/lowlevel/lowlevel.h
Previous file: linux/drivers/sound/lowlevel/awe_wave.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.5/linux/drivers/sound/lowlevel/init.c linux/drivers/sound/lowlevel/init.c
@@ -2,11 +2,31 @@
  * lowlevel/init.c - Calls initialization code for configured drivers.
  */
 
+#include "lowlevel.h"
 #include <linux/config.h>
+#include "../soundvers.h"
 
 #ifdef CONFIG_LOWLEVEL_SOUND
+
+#ifdef LOWLEVEL_MODULE
+char *lowlevel_version = SOUND_VERSION_STRING;
+#endif
+
 extern int attach_aci(void);
 extern void unload_aci(void);
+extern int attach_awe(void);
+extern void unload_awe(void);
+
+/*
+ * There are two places where you can insert initialization calls of
+ * low level drivers. sound_init_lowlevel_drivers() is called after
+ * the sound driver has been initialized (the normal case)
+ * while sound_preinit_lowlevel_drivers() is called before that.
+ */
+void
+sound_preinit_lowlevel_drivers(void)
+{
+}
 
 void
 sound_init_lowlevel_drivers(void)
@@ -14,6 +34,10 @@
 #ifdef CONFIG_ACI_MIXER
    attach_aci();
 #endif
+
+#ifdef CONFIG_AWE32_SYNTH
+   attach_awe();
+#endif
 }
 
 void
@@ -21,6 +45,10 @@
 {
 #ifdef CONFIG_ACI_MIXER
    unload_aci();
+#endif
+
+#ifdef CONFIG_AWE32_SYNTH
+   unload_awe();
 #endif
 }
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov