Re: [linux-audio-user] UM2 USB midi interface is the guilty ?

From: Lee Revell <rlrevell@email-addr-hidden-job.com>
Date: Fri Aug 19 2005 - 03:55:08 EEST

On Wed, 2005-08-17 at 16:45 +0200, Clemens Ladisch wrote:
> > Surprisingly, aseqdump is detecting both devices.
>
> This one uses the ALSA API correctly.

Actually I think there is a bug. Here's my MIDI setup:

 Port Client name Port name
  0:0 System Timer
  0:1 System Announce
 62:0 Midi Through Midi Through Port-0
 64:0 Audigy MPU-401 (UART) Audigy MPU-401 (UART)
 64:32 Audigy MPU-401 (UART) Audigy MPU-401 #2

If have gmidimon running on /dev/midi, aseqdump -p 64:0 fails with
-EBUSY, and dmesg says this:

ALSA sound/core/seq/seq_midi.c:187: midi input open failed!!!

But this should work, since gmidimon opens /dev/midi readonly:

rlrevell@email-addr-hidden:~/cvs/alsa$ sudo lsof /dev/snd/midiC0D* /dev/midi*
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
gmidimon 20112 rlrevell 4r CHR 14,2 3793 /dev/midi

Is concurrent access to MIDI by the ALSA sequencer and OSS apps really
forbidden? The debug printk leads me to believe that this is supposed
to work.

BTW I hate GTK 1.2 so much that I took 10 minutes to port gmidimon to
gtk-2.0. Patch is attached. Apply it *after* running ./configure, as I
couldn't get autoconf work right as it insists on
using /usr/bin/gtk-config which doesn't exist in GTK-2.0.

Lee

Received on Fri Aug 19 04:15:10 2005

This archive was generated by hypermail 2.1.8 : Fri Aug 19 2005 - 04:15:10 EEST