patch-2.1.96 linux/drivers/sound/pas2_card.c
Next file: linux/drivers/sound/vidc.c
Previous file: linux/drivers/sound/gus_wave.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Sun Apr 12 11:42:15 1998
- Orig file:
v2.1.95/linux/drivers/sound/pas2_card.c
- Orig date:
Wed Apr 8 19:36:27 1998
diff -u --recursive --new-file v2.1.95/linux/drivers/sound/pas2_card.c linux/drivers/sound/pas2_card.c
@@ -37,6 +37,11 @@
static int pas_intr_mask = 0;
static int pas_irq = 0;
static int pas_sb_base = 0;
+#ifndef CONFIG_PAS_JOYSTICK
+static int joystick = 0;
+#else
+static int joystick = 1;
+#endif
char pas_model = 0;
@@ -142,9 +147,7 @@
*/ , 0xB88);
pas_write(0x80
-#ifdef PAS_JOYSTICK_ENABLE
- | 0x40
-#endif
+ | joystick?0x40:0
,0xF388);
if (pas_irq < 0 || pas_irq > 15)
@@ -379,6 +382,8 @@
MODULE_PARM(sb_irq,"i");
MODULE_PARM(sb_dma,"i");
MODULE_PARM(sb_dma16,"i");
+
+MODULE_PARM(joystick,"i");
struct address_info config;
struct address_info sbhw_config;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov