All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opl3sa2.c more detail on irq allocation fail
@ 2004-01-10  2:08 David Fries
  2004-01-13 17:16 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: David Fries @ 2004-01-10  2:08 UTC (permalink / raw)
  To: alsa-devel

I need this patch so in the future if something is taking the irq and
I don't notice it I'll at least have a message saying so.

I tried the 2.4.22 kernel and all it would tell me was that the opl3sa
module couldn't find the hardware.  Finally I went back and added some
printk messages to track down where the problem was.  It turns out
that acpi was allocating irq 5 to the pcmcia socket where 2.4.21 and
before left that interrupt free.  If I had a message like the one
below I would have had something to look for.  It turns out that
2.4.23 works fine, it just assigns all the pci devices to use irq 11,
which works, but isn't optional.

Is this the right place to send patches?

Index: opl3sa2.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/opl3sa2.c,v
retrieving revision 1.30
diff -u -r1.30 opl3sa2.c
--- opl3sa2.c	14 Oct 2003 13:08:14 -0000	1.30
+++ opl3sa2.c	10 Jan 2004 02:06:31 -0000
@@ -771,6 +771,7 @@
 	if ((err = snd_opl3sa2_detect(chip)) < 0)
 		goto __error;
 	if (request_irq(xirq, snd_opl3sa2_interrupt, SA_INTERRUPT, "OPL3-SA2/3", (void *)chip)) {
+		snd_printk(KERN_ERR "Could not allocate interrupt %d\n", xirq);
 		err = -ENODEV;
 		goto __error;
 	}

-- 
David Fries <dfries@mail.win.org>
http://fries.net/~david/pgpkey.txt


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-13 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-10  2:08 [PATCH] opl3sa2.c more detail on irq allocation fail David Fries
2004-01-13 17:16 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.