patch-2.3.38 linux/drivers/sound/sb_card.c
Next file: linux/drivers/sound/sonicvibes.c
Previous file: linux/drivers/sound/sb_audio.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
Thu Jan 6 15:01:56 2000
- Orig file:
v2.3.37/linux/drivers/sound/sb_card.c
- Orig date:
Tue Dec 14 01:27:24 1999
diff -u --recursive --new-file v2.3.37/linux/drivers/sound/sb_card.c linux/drivers/sound/sb_card.c
@@ -145,11 +145,6 @@
int support = 0; /* Set support to load this as a support module */
int sm_games = 0; /* Mixer - see sb_mixer.c */
int acer = 0; /* Do acer notebook init */
-#ifdef CONFIG_ISAPNP
-int isapnp = 1;
-#else
-int isapnp = 0;
-#endif
MODULE_PARM(io, "i");
MODULE_PARM(irq, "i");
@@ -163,9 +158,6 @@
MODULE_PARM(pas2, "i");
MODULE_PARM(sm_games, "i");
MODULE_PARM(esstype, "i");
-#ifdef CONFIG_ISAPNP
-MODULE_PARM(isapnp, "i");
-#endif
void *smw_free = NULL;
@@ -233,12 +225,7 @@
if (mad16 == 0 && trix == 0 && pas2 == 0 && support == 0)
{
#ifdef CONFIG_ISAPNP
- if (isapnp == 1 && sb_probe_isapnp(&config, &config_mpu)<0)
- {
- printk(KERN_ERR "sb_card: No ISAPnP cards found\n");
- return -EINVAL;
- }
- else
+ if (sb_probe_isapnp(&config, &config_mpu)<0)
{
#endif
if (io == -1 || dma == -1 || irq == -1)
@@ -251,6 +238,9 @@
config.dma = dma;
config.dma2 = dma16;
config.card_subtype = type;
+#ifdef CONFIG_MIDI
+ config_mpu.io_base = mpu_io;
+#endif
#ifdef CONFIG_ISAPNP
}
#endif
@@ -261,8 +251,6 @@
if(config.slots[0]==-1)
return -ENODEV;
#ifdef CONFIG_MIDI
- if (isapnp == 0)
- config_mpu.io_base = mpu_io;
if (probe_sbmpu(&config_mpu))
sbmpu = 1;
if (sbmpu)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)