patch-1.3.69 linux/drivers/sound/gus_card.c

Next file: linux/drivers/sound/gus_wave.c
Previous file: linux/drivers/sound/dmabuf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.68/linux/drivers/sound/gus_card.c linux/drivers/sound/gus_card.c
@@ -111,9 +111,19 @@
 int
 probe_gus (struct address_info *hw_config)
 {
-  int             io_addr;
+  int             io_addr, irq;
 
   gus_osp = hw_config->osp;
+
+  irq = hw_config->irq;
+
+  if (hw_config->card_subtype == 0)	/* GUS/MAX/ACE */
+    if (irq != 3 && irq != 5 && irq != 7 && irq != 9 &&
+	irq != 11 && irq != 12 && irq != 15)
+      {
+	printk ("GUS: Unsupported IRQ %d\n", irq);
+	return 0;
+      }
 
   if (!check_region (hw_config->io_base, 16))
     if (!check_region (hw_config->io_base + 0x100, 16))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this