Skip to contentSkip to conversation

2.4.6-ac2: "uart401: bad devc"

DISCUSSION Jan Niehusmann 2 participants 2 messages Jul 15, 2001 – Jul 16, 2001

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Jan Niehusmann

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.

The attached patch should fix the problem.

Signature · 1 line
Adrian Cox   http://www.humboldt.co.uk/

===== drivers/sound/via82cxxx_audio.c 1.12 vs edited =====

drivers/sound/via82cxxx_audio.c +2 -1
@@ -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;
     	}