Re: [LAU] Please help with audio interfaces that keep changing after reboot

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Geoff King <gsking1@...>
Cc: <linux-audio-user@...>
Date: Friday, May 7, 2010 - 11:45 pm

--0016e64caffcd7269b048609a80e
Content-Type: text/plain; charset=UTF-8

On Fri, May 7, 2010 at 4:17 PM, Geoff King wrote:

> I have problem that I've been trying to figure out with no luck. The

Consider setting up /etc/modprobe.d/*.conf file to ensure a consistent
ordering of all your USB devices.

for example, I use:
-rw-r--r-- 1 root root 1760 2010-03-12 11:32
/etc/modprobe.d/snd_usb_audio.conf

##

## NPM: force ALSA USB sound device id's s.t. cat /proc/asound/cards gives

## 0 [Headset ]: USB-Audio - Logitech USB Headset

## Logitech Logitech USB Headset at

## 1 [SB ]: HDA-Intel - HDA ATI SB

## HDA ATI SB at 0xfb9f4000 irq 16

## 2 [M66 ]: ICE1712 - M Audio Delta 66

## M Audio Delta 66 at 0xe880, irq 21

## 3 [MT4 ]: USB-Audio - MT4

## Emagic MT4 at usb-0000:00:12.1-1, full speed

## 4 [BCD3000 ]: USB-Audio - BCD3000

## Behringer BCD3000 at usb-0000:00:13.1-2, full speed

## 5 [UM2 ]: USB-Audio - UM-2

## EDIROL UM-2 at usb-0000:00:12.1-3, full speed

## (see

## (see http://alsa.opensrc.org/index.php/MultipleUSBAudioDevices )

##

alias snd-card-0 snd-usb-audio ## --> Headset

## snd-card-1 ## --> SB

## snd-card-2 ## --> M66

alias snd-card-3 snd-usb-audio ## --> MT4

alias snd-card-4 snd-usb-audio ## --> BCD3000

alias snd-card-5 snd-usb-audio ## --> UM-2

alias snd-card-6 snd-usb-audio ## --> LPK25

##

## lsusb gives following devices w/ vid/pid's:

## Headset: Bus 003 Device 003: ID 046d:0a0c Logitech, Inc.

## MT4: Bus 004 Device 002: ID 086a:0003 Emagic Soft- und Hardware GmbH

## UM-2: Bus 004 Device 005: ID 0582:0005 Roland Corp. Edirol UM-2 MIDI

## BCD3000: Bus 006 Device 005: ID 1397:00bf

## LPK25: Bus 005 Device 003: ID 09e8:0076 AKAI Professional M.I. Corp.

##

options snd-usb-audio index=0,3,4,5,6 vid=0x046d,0x086a,0x1397,0x0582,0x09e8

I usually use qjackctl and have to keep changing the presets with settings

You can also use "Symbolic" names for ALSA devices which will make them not
depend on a particular device number, e.g.

> > aplay -l | grep M66

card 2: M66 [M Audio Delta 66], device 0: ICE1712 multi [ICE1712 multi]

So use "M66" as the ALSA name, for jack, e.g. '/usr/bin/jackd -dalsa
-dhw:M66 ...'

Niels
http://nielsmayer.com

PS: you may want to leave device 0 unreserved. That way when you plug in a
new USB device (before you've added it to /etc/modprobe.d) it won't get
assigned to card0 automatically. That's what would happen by default (a bug
IMHO) and prevent whatever you had setup previously as card0 from
iniitializing.
Then when jack or alsa attempts to use the card, it fails. In fact, plugging
in a new unrecognized usb device, then starting up qjackctl can cause
qjackctl to place some bad values in ~/.config/rncbc.org/QjackCtl.conf and
the next thing you know your audio is all horked up (even after removing the
offending USB device and rebooting) until you delete the QjackCtl.conf and
set it up from scratch.

--0016e64caffcd7269b048609a80e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Fri, May 7, 2010 at 4:17 PM, Geoff King=C2=A0<=
gsking1@gmail.com>=C2=A0=
wrote:
I have problem that I've been trying to figure out with no luck. =C2=A0=
Theaudio interface keeps changing for example:Today: =C2=A0Maud=
io 24/96 is hw:1 and Midisport 4x4 Anniv is hw:0.Yesterday before reboo=
t: Maudio 24/96 is hw:0 and Midisport 4x4 Anniv is hw:1
etc, back and forth, each reboot...Consid=
er setting up /etc/modprobe.d/*.conf file to ensure a consistent ordering o=
f all your USB devices.for example, I use:
-rw-r--r-- 1 root root 1760 2010-03-12 11:32 /etc/modprobe.d/snd_=
usb_audio.conf
##
## NPM: force ALSA USB sound device id's s.t. cat /proc/asound/cards =
=C2=A0gives
## =C2=A00 [Headset =C2=A0 =C2=A0 =C2=A0 =C2=A0]: USB-Audio - Logitech USB =
Headset
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 Logitech Logitech USB Headset at usb-0000:00:12.0-2, full speed
## =C2=A01 [SB =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ]: HDA-Intel - HDA=
ATI SB
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 HDA ATI SB at 0xfb9f4000 irq 16
## =C2=A02 [M66 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0]: ICE1712 - M Aud=
io Delta 66
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 M Audio Delta 66 at 0xe880, irq 21
## =C2=A03 [MT4 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0]: USB-Audio - MT4=

## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 Emagic MT4 at usb-0000:00:12.1-1, full speed
## =C2=A04 [BCD3000 =C2=A0 =C2=A0 =C2=A0 =C2=A0]: USB-Audio - BCD3000
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 Behringer BCD3000 at usb-0000:00:13.1-2, full speed
## =C2=A05 [UM2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0]: USB-Audio - UM-=
2
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 EDIROL UM-2 at usb-0000:00:12.1-3, full speed
## (see http://ccrma.stanford.edu/planetccrma/software/installplan=
eteleven.html
)
## (see http://alsa.opensrc.org/index.php/MultipleUSBAudioDevices )
##
alias snd-card-0 snd-usb-audio ## --> Headset
## =C2=A0 =C2=A0snd-card-1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
## --> SB
## =C2=A0 =C2=A0snd-card-2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
## --> M66
alias snd-card-3 snd-usb-audio ## --> MT4
alias snd-card-4 snd-usb-audio ## --> BCD3000
alias snd-card-5 snd-usb-audio ## --> UM-2
alias snd-card-6 snd-usb-audio ## --> LPK25
##
## lsusb gives following devices w/ vid/pid's:
## Headset: Bus 003 Device 003: ID 046d:0a0c Logitech, Inc.=C2=A0
## MT4: =C2=A0 =C2=A0 Bus 004 Device 002: ID 086a:0003 Emagic Soft- und Har=
dware GmbH MT4
## UM-2: =C2=A0 =C2=A0Bus 004 Device 005: ID 0582:0005 Roland Corp. Edirol =
UM-2 MIDI Adapter
## BCD3000: Bus 006 Device 005: ID 1397:00bf
## LPK25: =C2=A0 Bus 005 Device 003: ID 09e8:0076 AKAI =C2=A0Professional M=
.I. Corp.=C2=A0
##
options snd-usb-audio index=3D0,3,4,5,6 vid=3D0x046d,0x086a,0x1397,0x0582,0=
x09e8 pid=3D0x0a0c,0x0003,0x00bf,0x0005,0x0076<=
/div>
I usually use qjackctl and have to keep changing the presets with=C2=A0sett=
ings which is annoying.=C2=A0You can also use &quot=
;Symbolic" names for ALSA devices=C2=A0which will make them not depend=
on a particular device number, e.g.=C2=A0

> aplay -l | grep M66
card 2: M66 [M Audio Delta 66], device 0: ICE1712 multi [ICE1712 multi]So use "M66" as the ALSA name,=
for jack, e.g. '/usr/bin/jackd -dalsa -dhw:M66 ...'
Nielshttp://nie=
lsmayer.com
PS: you may want to leave device 0=
unreserved. That way when you plug in a new USB device (before you've =
added it to /etc/modprobe.d) it won't get assigned to card0 automatical=
ly. That's what would happen by default (a bug IMHO) and prevent whatev=
er you had setup previously as card0 from iniitializing.=C2=A0
Then when jack or alsa attempts to use the card, it fails. In fact, pl=
ugging in a new unrecognized usb device, then starting up qjackctl can caus=
e qjackctl to place some bad values in=C2=A0~/.config/rncbc.org/QjackCtl.conf and the next thing you kn=
ow your audio is all horked up (even after removing the offending USB devic=
e and rebooting) until you delete the QjackCtl.conf and set it up from scra=
tch.

--0016e64caffcd7269b048609a80e--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAU] Please help with audio interfaces that keep changi..., Fernando Lopez-Lezcano, (Sat May 8, 5:10 pm)
Re: [LAU] Please help with audio interfaces that keep changi..., Philipp √úberbacher, (Sun May 9, 6:55 am)
Re: [LAU] Please help with audio interfaces that keep changi..., Niels Mayer, (Fri May 7, 11:45 pm)