All of lore.kernel.org
 help / color / mirror / Atom feed
* MIDI input broken with ECS P4S5A/DX+ motherboard and generic MPU-401 driver. (Output works fine, though.)
@ 2003-01-28 20:39 Mark J Roberts
  2003-01-29 10:17 ` Jaroslav Kysela
  0 siblings, 1 reply; 3+ messages in thread
From: Mark J Roberts @ 2003-01-28 20:39 UTC (permalink / raw)
  To: alsa-devel; +Cc: perex

[ 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

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

* Re: MIDI input broken with ECS P4S5A/DX+ motherboard and generic MPU-401 driver. (Output works fine, though.)
  2003-01-28 20:39 MIDI input broken with ECS P4S5A/DX+ motherboard and generic MPU-401 driver. (Output works fine, though.) Mark J Roberts
@ 2003-01-29 10:17 ` Jaroslav Kysela
  2003-01-29 21:27   ` Mark J Roberts
  0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Kysela @ 2003-01-29 10:17 UTC (permalink / raw)
  To: Mark J Roberts; +Cc: alsa-devel@lists.sourceforge.net

On Tue, 28 Jan 2003, Mark J Roberts wrote:

> [ 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.
> 
> 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 <perex@suse.cz>
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

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

* Re: MIDI input broken with ECS P4S5A/DX+ motherboard and generic MPU-401 driver. (Output works fine, though.)
  2003-01-29 10:17 ` Jaroslav Kysela
@ 2003-01-29 21:27   ` Mark J Roberts
  0 siblings, 0 replies; 3+ messages in thread
From: Mark J Roberts @ 2003-01-29 21:27 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: alsa-devel@lists.sourceforge.net

Jaroslav Kysela:
> 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

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

end of thread, other threads:[~2003-01-29 21:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-28 20:39 MIDI input broken with ECS P4S5A/DX+ motherboard and generic MPU-401 driver. (Output works fine, though.) Mark J Roberts
2003-01-29 10:17 ` Jaroslav Kysela
2003-01-29 21:27   ` Mark J Roberts

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.