2001-07-15 17:59:23

by Jan Niehusmann

[permalink] [raw]
Subject: 2.4.6-ac2: "uart401: bad devc"

Linux 2.4.6-ac2 with CONFIG_MIDI_VIA82CXXX set does cause a
kernel hang on my setup. On the first sound I play (ie cat >/dev/dsp)
an endless stream of "uart401: bad devc" messages shows up on the
console - everything else hangs.

Related config details:

/dev/dsp is on a sound blaster live, via82cxxx_audio is the second
sound card (not really used). Both are loaded as modules.

emu10k1 and via82cxxx share the same interrupt (5). I assume that
the via midi driver gets confused by the interrupt that was meant
for the sound blaster live.

If I try a kernel without CONFIG_MIDI_VIA82CXXX defined, the problem
disappears.

Jan


2001-07-16 09:22:56

by Adrian Cox

[permalink] [raw]
Subject: Re: 2.4.6-ac2: "uart401: bad devc"

===== drivers/sound/via82cxxx_audio.c 1.12 vs edited =====
--- 1.12/drivers/sound/via82cxxx_audio.c Thu Jun 28 16:34:45 2001
+++ edited/drivers/sound/via82cxxx_audio.c Mon Jul 16 10:19:52 2001
@@ -1641,7 +1641,8 @@
if (!(status32 & VIA_INTR_MASK))
{
#ifdef CONFIG_MIDI_VIA82CXXX
- uart401intr(irq, card->midi_devc, regs);
+ if (card->midi_devc)
+ uart401intr(irq, card->midi_devc, regs);
#endif
return;
}


Attachments:
viamidi.patch (473.00 B)