Skip to contentSkip to conversation

MIDI input broken with ECS P4S5A/DX+ motherboard and generic MPU-401 driver. (Output works fine, though.)

DISCUSSION Mark J Roberts 2 participants 3 messages Jan 28, 2003 – Jan 29, 2003

lore
Share & tools
lore
#0 lore raw

[ An evil list-moderator bot ate the first version of this. ]

I'm running kernel 2.5.49, built with the generic MPU-401 MIDI driver, and booted with the "snd-mpu401=1,-1,,0x300,10" option, which corresponds to IO port 0x300 and IRQ 10.

I've configured my BIOS to enable the on-board MIDI interface, and set it to port 0x300 and IRQ 10.

"pmidi -p 64:0 whatever.mid" works fine and the box at the other end of the MIDI cable makes noises as it should.

But I've found no way to read any input. (I believe "cat /proc/snd/midiC0D0 should be able to read a raw MIDI stream, correct?)

# cat /proc/asound/UART/midi0
MPU-401 (UART)

Output 0
Tx bytes : 5986
Input 0

  Rx bytes     : 0
  Buffer size  : 4096
  Avail        : 0
  Overruns     : 0

dmesg snippet:

Advanced Linux Sound Architecture Driver Version 0.9.0rc5 (Sun Nov 10 19:48:18 2002 UTC).
PCI: Found IRQ 5 for device 00:0c.0
PCI: Sharing IRQ 5 with 00:08.0
ALSA device list:
#0: MPU-401 UART at 0x300, IRQ 10
#1: Sound Blaster Audigy at 0xc800, irq 5
NET4: Linux TCP/IP 1.0 for NET4.0

I've tried setting IRQ to "-1", to enable polling mode, with no effect. I've upgraded mpu401/ etc to alsa cvs, also with no effect. I've tried the intel i8x0 driver (had to configure the port to 0x300 before it'd recognize the MIDI interface), also with no improvement.

I see zero interrupts in /proc/interrupts:

10: 0 XT-PIC MPU401 UART

So, any ideas?

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

#1 lore raw
Quoted 6 lines · Mark J Roberts

[ An evil list-moderator bot ate the first version of this. ]

I'm running kernel 2.5.49, built with the generic MPU-401 MIDI driver, and booted with the "snd-mpu401=1,-1,,0x300,10" option, which corresponds to IO port 0x300 and IRQ 10.

Quoted 8 lines

I've configured my BIOS to enable the on-board MIDI interface, and set it to port 0x300 and IRQ 10.

I see zero interrupts in /proc/interrupts:

10: 0 XT-PIC MPU401 UART

So, any ideas?

You've pointed to the reason: hardware does not generate input interrupts. Try to disable the IRQ (snd-mpu401=1,,,0x300,-1).

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

#2 lore raw

Jaroslav Kysela:

Quoted 2 lines

You've pointed to the reason: hardware does not generate input interrupts. Try to disable the IRQ (snd-mpu401=1,,,0x300,-1).

I had to set the index field there to "1" or "-1" in order to get the MPU-401 recognized at bootup. (I have another sound card in this box too, maybe that's why.)

As I said, I've already tried disabling the IRQ, and I get the same behavior. I just did it again to make sure - this time I'm running 2.4.49 with merged-in 2.5.59 alsa code. (Matrox framebuffer...)

I boot up and see this:

Advanced Linux Sound Architecture Driver Version 0.9.0rc6 (Tue Dec 17 19:01:13 2002 UTC).
PCI: Found IRQ 5 for device 00:0c.0
PCI: Sharing IRQ 5 with 00:08.0
ALSA device list:
#0: MPU-401 UART at 0x300, polled
#1: Sound Blaster Audigy at 0xc800, irq 5
NET4: Linux TCP/IP 1.0 for NET4.0

But still no luck trying to read anything:

$ cat /dev/snd/midiC0D0 &
$ cat /proc/asound/UART/midi0
MPU-401 (UART)

Output 0
Tx bytes : 20
Input 0

  Rx bytes     : 0
  Buffer size  : 4096
  Avail        : 0
  Overruns     : 0

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com