Followed Pedro's advice. I compiled and install successfully the ALSA lib,
utils and kernel driver packages.

modprobe snd-usb-midi worked.

I checked my /var/log/messages file after plugging the usb device in and
here are the results:

Aug 19 17:11:56 linux kernel: hub.c: USB new device connect on bus1/2,
assigned device number 6
Aug 19 17:11:56 linux kernel: usbaudio: device 6 audiocontrol interface 0
interface 1 MIDIStreaming not supported
Aug 19 17:11:56 linux kernel: usbaudio: device 6 audiocontrol interface 0
has 0 input and 0 output AudioStreaming interfaces
Aug 19 17:11:56 linux kernel: usb-midi: Found MIDISTREAMING on dev
0a4d:008c, iface 1
Aug 19 17:11:56 linux kernel: usb-midi: Found MIDIStreaming device
corresponding to Release 1.00 of spec.
Aug 19 17:11:56 linux kernel: usb-midi: Found IN Jack 0x01 EMBEDDED
Aug 19 17:11:56 linux kernel: usb-midi: Found IN Jack 0x02 EXTERNAL
Aug 19 17:11:56 linux kernel: usb-midi: Found OUT Jack 0x03 EMBEDDED, 1 pins
Aug 19 17:11:56 linux kernel: usb-midi: Found OUT Jack 0x04 EXTERNAL, 1 pins
Aug 19 17:11:56 linux kernel: string descriptor 0 found (length = 4)
Aug 19 17:11:56 linux kernel: usb-midi: langid(0) 0x0409
Aug 19 17:11:56 linux kernel: usb-midi: langid(match) 0x0409
Aug 19 17:11:56 linux kernel: usb-midi: fetchString(2)
Aug 19 17:11:56 linux kernel: usb-midi: fetchString = 24
Aug 19 17:11:56 linux kernel: usbmidi: found [ MK-249 USB MIDI keyboard ]
(0x0a4d:0x008c), attached:
Aug 19 17:11:56 linux kernel: usbmidi: /dev/midi01: in (ep:81 cid: 0 bufsiz:
0) out (ep:02 cid: 0 bufsiz:64)
Aug 19 17:11:57 linux kernel: usb.c: registered new driver snd-usb-audio
Aug 19 17:11:57 linux kernel: usbaudio: device 6 audiocontrol interface 0
interface 1 MIDIStreaming not supported
Aug 19 17:11:57 linux kernel: usbaudio: device 6 audiocontrol interface 0
has 0 input and 0 output AudioStreaming interfaces
Aug 19 17:11:57 linux kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1966:
cannot create a card instance 0
Aug 19 17:11:57 linux insmod: Using
/lib/modules/2.4.18-4GB/kernel/sound/usb/snd-usb-audio.o

Where am I going wrong? When I did aconnect -i no usb device was shown.
""Aug 19 17:11:57 linux kernel: ALSA ../alsa-kernel/usb/usbaudio.c:1966:
cannot create a card instance 0""

MK-249 USB MIDI keyboard is the Evolution keyboard. 

I see both usb-midi and usbmidi. Could this be because I've got the daemon
installed as well?

-----Original Message-----
From: Pedro Lopez-Cabanillas [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2002 16:29
To: Michael Martin
Cc: alsa-user
Subject: Re: [Alsa-user] ALSA USB MIDI Input


El Lun 19 Ago 2002 15:34, Michael Martin escribi:
> Hi,
>
> I downloaded, compiled, installed the alsa drivers (0.9.0rc3)

You need alsa-lib and alsa-utils packages also.

> I did modprobe snd-cmipci
> I did modprobe usb-midi
> All successful.
>
> But then I did aconnect -i and I could only see my sound card's External
> MIDI interface, not the usb-midi interface.

usb-midi is the old OSS driver. If you want to use ALSA, try "modprobe 
snd-usb-midi" instead.

You can use OSS programs with ALSA drivers, thanks to the OSS emulation 
included in ALSA, but not vice versa; aconnect will only work with ALSA 
drivers.

> Do I need to add any lines to my /etc/modules.conf to make usb midi work?

If you set your /etc/modules.conf properly, the alsasound script (installed
in 
/etc/rc.d/init.d by 'make install') will load your modules automatically 
every time you boot, or by hand running that script anytime.

Quoting an early post in this list about modules.conf:
Really detailled instructions for almost every supported card are
at http://www.alsa-project.org/alsa-doc/
for example this module snippet: 

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-cmipci
alias snd-card-1 snd-usb-midi
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1

# only needed for 1st card
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

Regards,
Pedro


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to