El Lun 19 Ago 2002 18:24, Michael Martin escribió:

> 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?

No, but you should uninstall it if you are going to use the driver instead the 
daemon.

When you plug in some usb device, the linux-hotplug program tries to find a 
suitable driver, and then modprobe it. That is what happened: first, hotplug 
has tried the audio.o module (OSS), but this driver is for digital audio, not 
MIDI, and cannot work with it:
> 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

Then, it probed the usb-midi (OSS) driver, that claimed your device 
succesfully:
> 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)

At this point, you can use your keyboard with this driver, reading and writing  
to "/dev/midi01". This is not ALSA, but OSS.

After, you tried modprobe snd-usb-audio:
> 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

Of course, this module can't find any hardware to work with, and fails.
If you do a "lsmod" command, you should see the 'audio' and 'usb-midi' 
drivers. To unload them:
# rmmod audio usb-midi

I suggest you to add these modules to the /etc/hotplug/blacklist file:
# cat /etc/hotplug/blacklist
audio
usb-midi
snd-usb-audio
snd-usb-midi

You can see that I include the ALSA modules here. This prevents hotplug from 
loading them when you plug the keyboard, but this is not a problem if you use 
the right /etc/modules.conf setup, and the alsasound script.

HTH

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