On Tue, 20 Aug 2002, Michael Martin wrote:
> The kernel had this to say
>
> Aug 20 15:55:36 linux kernel: hub.c: USB new device connect on bus1/2,
> assigned device number 3
> Aug 20 15:55:36 linux kernel: snd-usb-midi: using interface 1
> Aug 20 15:55:36 linux kernel: snd-usb-midi: MIDIStreaming version 01.00
> Aug 20 15:55:36 linux kernel: snd-usb-midi: detected 1 input jack(s) on
> endpoint 1
> Aug 20 15:55:36 linux kernel: snd-usb-midi: detected 1 output jack(s) on
> endpoint 2
> Aug 20 15:55:36 linux kernel: snd-usb-midi: detected Evolution Electronics
> Ltd. MK-249 USB MIDI keyboard
> Aug 20 15:55:36 linux kernel: ALSA ../alsa-kernel/usb/usbmidi.c:1196: cannot
> create card (error code -12)
>
> but 15:55:36 was when I unplugged and re plugged in the keyboard. I want
> hotplugging.

The hotplugging code works, but for some reason, the driver isn't able to
create the sound card object. I'd guess that the snd_cards_limit parameter
is set to 1, so that ALSA refuses to use more than one sound card.
(Maybe the SuSE installation sets this to 1 because it doesn't know about
USB MIDI.)

The following lines for /etc/modules.conf should work for your
configuration:

        alias char-major-116 snd
        options snd snd_cards_limit=2

        alias snd-card-0 snd-cmipci
        options snd-cmipci snd_index=0

        alias snd-card-1 snd-usb-midi
        options snd-usb-midi snd_index=1

        # (entries for OSS omitted, see my other mail)


HTH
Clemens



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