Re: [linux-audio-user] Is it possible to force a USB MIDI device to use a fixed ALSA client ID?

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Fri Sep 09 2005 - 19:47:27 EEST

Lars Luthman wrote:
> the keyboard can get a different ALSA client ID every time I turn
> it on.

The client ID depends on the sound card number. ALSA drivers grab the
first free sound card number when they're loaded unless told
otherwise, so the client ID will change if drivers are loaded in a
different order.

In your /etc/modprobe.conf (or whatever your distribution uses), add
"index" options to your drivers to force them to always have the same
ID:

options snd-whatever index=0
options snd-usb-audio index=1

If a driver handles more than one card, use multiple index values like
this:

options snd-usb-audio index=1,2,5

HTH
Clemens
Received on Fri Sep 9 20:15:06 2005

This archive was generated by hypermail 2.1.8 : Fri Sep 09 2005 - 20:15:06 EEST