patch-2.1.109 linux/drivers/sound/msnd_classic.c
Next file: linux/drivers/sound/msnd_classic.h
Previous file: linux/drivers/sound/msnd.h
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Mon Jul 13 12:43:04 1998
- Orig file:
v2.1.108/linux/drivers/sound/msnd_classic.c
- Orig date:
Wed Jul 1 19:38:55 1998
diff -u --recursive --new-file v2.1.108/linux/drivers/sound/msnd_classic.c linux/drivers/sound/msnd_classic.c
@@ -2,7 +2,7 @@
*
* msnd_classic.c - Support for Turtle Beach Classic/Monterey/Tahiti
*
- * Turtle Beach MultiSound Soundcard Driver for Linux
+ * Turtle Beach MultiSound Sound Card Driver for Linux
*
* Copyright (C) 1998 Andrew Veliath
*
@@ -24,6 +24,7 @@
*
********************************************************************/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/malloc.h>
#include <linux/types.h>
@@ -1161,10 +1162,18 @@
static int irq __initdata = -1;
static int mem __initdata = -1;
static int fifosize __initdata = DEFFIFOSIZE;
-static int
-calibrate_signal __initdata = 0;
+static int calibrate_signal __initdata;
int init_module(void)
+#else
+static int io __initdata = CONFIG_MSNDCLAS_IO;
+static int irq __initdata = CONFIG_MSNDCLAS_IRQ;
+static int mem __initdata = CONFIG_MSNDCLAS_MEM;
+static int fifosize __initdata = DEFFIFOSIZE;
+static int calibrate_signal __initdata;
+
+__initfunc(msnd_classic_init(void))
+#endif
{
int err;
@@ -1291,6 +1300,8 @@
return 0;
}
+
+#ifdef MODULE
void cleanup_module(void)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov