patch-2.1.13 linux/drivers/sound/sscape.c
Next file: linux/drivers/sound/sys_timer.c
Previous file: linux/drivers/sound/soundvers.h
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Fri Nov 15 10:15:42 1996
- Orig file:
v2.1.12/linux/drivers/sound/sscape.c
- Orig date:
Tue Oct 29 19:58:19 1996
diff -u --recursive --new-file v2.1.12/linux/drivers/sound/sscape.c linux/drivers/sound/sscape.c
@@ -813,18 +813,14 @@
devc->failed = 0;
}
-int
-probe_sscape (struct address_info *hw_config)
+static int
+detect_ga (sscape_info * devc)
{
unsigned char save;
- devc->base = hw_config->io_base;
- devc->irq = hw_config->irq;
- devc->dma = hw_config->dma;
-
- devc->failed = 1;
+ DDB (printk ("Entered Soundscape detect_ga(%x)\n", devc->base));
- if (sscape_detected != 0 && sscape_detected != hw_config->io_base)
+ if (check_region (devc->base, 8))
return 0;
/*
@@ -876,6 +872,25 @@
DDB (printk ("soundscape: Detect error F\n"));
return 0;
}
+
+ return 1;
+}
+
+int
+probe_sscape (struct address_info *hw_config)
+{
+
+ devc->base = hw_config->io_base;
+ devc->irq = hw_config->irq;
+ devc->dma = hw_config->dma;
+
+ if (sscape_detected != 0 && sscape_detected != hw_config->io_base)
+ return 0;
+
+ devc->failed = 1;
+
+ if (!detect_ga (devc))
+ return 0;
#ifdef SSCAPE_DEBUG1
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov