Ok, I admit it; I cannot figure out how to setup ALSA :-)
I *did* read alot of examples (on the ALSA wiki, in the evolution USB
MIDI Howto and the asoundrc.txt included with ALSA 0.9.6). Although I
think I understand the examples, I can't produce a working .asoundrc
myself. So much for the appologies, hope someone would be kind enough to
help me create a config file that would enable me to get midi into the
system. I'd also appreciate some pointers to relevant reading where the
concepts in ALSA are explained.
So far I compiled all relevant ALSA modules in the kernel (2.6.0-test3),
including emulation of OSS mixer, pcm and seq. Now sound is working
almost fine (PD doesn't love using the ALSA output, but csound, play,
xmms and alsaplayer works flawlessly). But I cannot make *any* program
recieve midi from the Evolution USB keyboard. I can't even get a reading
in either pd or aseqview. I run debian/unstable so there's no such thing
as /etc/modules.conf. It's was /etc/modutils/alsa, but now I moved it
out of the way. Instead I figured I'd start with ~/.asoundrc, since I
believe they should be the same. So for now, no config file is present.
Here's what aconnect -io says with the keyboard plugged in:
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 72: 'Rawmidi 1 - MK-249C USB MIDI keyboard' [type=kernel]
0 'MK-249C USB MIDI keyboard Port '
Thought that connecting the > of 'Rawmidi 1 - MK-249C USB MIDI keyboard'
to < of 'MIDI Viewer - Viewer port 0' in aconnectgui would result in
readings in aseqview, but no :-( Also tried to connect the < og the
keyboard to > of the viewer, same result.
Here's what shows up in /var/log/messages when I plug in the Evolution:
Aug 13 23:37:05 aarhus kernel: hub 3-0:0: new USB device on port 2,
assigned address 6
Aug 13 23:37:05 aarhus usb.agent[1420]: ... no modules for USB product
a4d/8e/252
Aug 13 23:37:05 aarhus kernel: usbaudio: device 6 audiocontrol interface
0 interface 1 MIDIStreaming not supported
Aug 13 23:37:05 aarhus kernel: usbaudio: device 6 audiocontrol interface
0 has 0 input and 0 output AudioStreaming interfaces
Aug 13 23:37:05 aarhus kernel: usb-midi: Found MIDISTREAMING on dev
0a4d:008e, iface 1
Aug 13 23:37:05 aarhus usb.agent[1438]: ... no modules for USB product
a4d/8e/252
Aug 13 23:37:05 aarhus kernel: usb-midi: Found MIDIStreaming device
corresponding to Release 1.00 of spec.
Aug 13 23:37:05 aarhus kernel: usb-midi: Found IN Jack 0x01 EMBEDDED
Aug 13 23:37:05 aarhus kernel: usb-midi: Found IN Jack 0x02 EXTERNAL
Aug 13 23:37:05 aarhus kernel: usb-midi: Found OUT Jack 0x03 EMBEDDED, 1
pins
Aug 13 23:37:05 aarhus kernel: usb-midi: Found OUT Jack 0x04 EXTERNAL, 1
pins
Aug 13 23:37:05 aarhus kernel: usb-midi: fetchString(2)
Aug 13 23:37:05 aarhus kernel: usb-midi: fetchString = 25
Aug 13 23:37:05 aarhus kernel: usbmidi: found [ MK-249C USB MIDI
keyboard ] (0x0a4d:0x008e), attached:
Aug 13 23:37:05 aarhus kernel: usbmidi: /dev/midi00: in (ep:81 cid: 0
bufsiz: 0) out (ep:02 cid: 0 bufsiz:64)
Here's some of the stuff I get from looking around in /proc:
[atte@aarhus atte]$ cat /proc/asound/devices
1: : sequencer
0: [0- 0]: ctl
16: [0- 0]: digital audio playback
24: [0- 0]: digital audio capture
33: : timer
32: [1- 0]: ctl
40: [1- 0]: raw midi
[atte@aarhus atte]$ cat /proc/asound/cards
0 [SI7012 ]: ICH - SiS SI7012
SiS SI7012 at 0xdc00, irq 10
1 [keyboard ]: USB-Audio - MK-249C USB MIDI keyboard
Evolution Electronics Ltd. MK-249C USB MIDI
keyboard at usb-0000:00:03.1-2
[atte@aarhus atte]$ ll /proc/asound/card0/
total 0
-r--r--r-- 1 root root 0 2003-08-13 23:41 ac97#0
-r--r--r-- 1 root root 0 2003-08-13 23:41 ac97#0regs
-r--r--r-- 1 root root 0 2003-08-13 23:41 ac97#1-1
-r--r--r-- 1 root root 0 2003-08-13 23:41 ac97#1-1regs
-r--r--r-- 1 root root 0 2003-08-13 23:41 id
-r--r--r-- 1 root root 0 2003-08-13 23:41 intel8x0
-rw-r--r-- 1 root root 0 2003-08-13 23:41 oss_mixer
dr-xr-xr-x 3 root root 0 2003-08-13 23:41 pcm0c
dr-xr-xr-x 3 root root 0 2003-08-13 23:41 pcm0p
[atte@aarhus atte]$ ll /proc/asound/card1/
total 0
-r--r--r-- 1 root root 0 2003-08-13 23:42 id
-r--r--r-- 1 root root 0 2003-08-13 23:42 midi0
-rw-r--r-- 1 root root 0 2003-08-13 23:42 oss_mixer
--
peace, love & harmony
Atte