Re: [LAU] Audiophile 2496 or the Delta 66

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Wednesday, April 21, 2010 - 3:58 pm

--001636ed6966f5d2230484c14303
Content-Type: text/plain; charset=UTF-8

On Wed, Apr 21, 2010 at 8:26 AM, Arnold Krille wrote:

> Take a look at loading modules with options. And then tell the kernel via

Except if you plug in a new USB audio device, such as a web-cam with
microphone, it'll automatically assert itself as "device 0" unless you
explicitly setup /etc/modprobe.d with ALSA card #'s for all devices before
ever plugging them in.

The issue is that the USB audio devices "bind" first, so if you have a PCI
or PCIe soundcard as device 0, such as your builtin mobo sound, or an add-on
Delta-66 or Audiophile 24/96, the "card" will fail because the random new
USB device has already grabbed the device.

One solution to this is to leave "device 0" unbound. That way, whenever you
accidentally plugin a USB device with sound, it automatically gets assigned
as device 0, instead of disabling whatever PCI card should have been bound
to that device.

FYI, here's the /etc/modprobe.d/snd.conf I setup on my son's computer to
ensure consistent numbering of ALSA audio devices:

##

## 0 [NVidia ]: HDA-Intel - HDA NVidia

## HDA NVidia at 0xdfff8000 irq 21

alias snd-card-0 snd-hda-intel

options snd-hda-intel index=0

##

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

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

alias snd-card-1 snd-ice1712

options snd-ice1712 index=1 omni=1

##

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

## Emagic MT4 at usb-0000:00:04.0-2, full speed

alias snd-card-2 snd-usb-audio

##

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

## AKAI professional LLC LPK25 at usb-0000:00:02.0-1,

alias snd-card-3 snd-usb-audio

##

## 4 [WE ]: USB-Audio - DJ Console (WE)

## Hercules DJ Console (WE) at usb-0000:00:02.0-2, full

alias snd-card-4 snd-usb-audio

##

## 5 [KQ245AA ]: USB-Audio - HP Prem AF Webcam KQ245AA

## HP Prem AF Webcam KQ245AA HP Prem AF Webcam KQ245AA

alias snd-card-5 snd-usb-audio

##

## ROOT-coggie-16-/etc/modprobe.d> lsusb

## ...

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

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

## Bus 004 Device 002: ID 06f8:b000 Guillemot Corp. Hercules DJ Console

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

## Bus 001 Device 003: ID 04f2:a13d Chicony Electronics Co., Ltd

## ...

options snd-usb-audio index=2,3,4,5 vid=0x086a,0x09e8,0x06f8,0x04f2

-- Niels
http://nielsmayer.com

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

On Wed, Apr 21, 2010 at 8:26 AM, Arnold Krille=C2=A0<<=
a href=3D"mailto:arnold@arnoldarts.de" target=3D"_blank" style=3D"color: rg=
b(28, 81, 168); ">arnold@arnoldarts.de>=C2=A0wrote:
Take a look at loading modules with options. And then tell the kernel =
via/etc/modprobe.d/ to load the modules for the soundcards with optio=
n"index=3D<IDX>" where IDX is the index number/ordering=
you want to give these
cards. Then it doesn't depend on the order the soundcards are detected<=
br>anymore.Except if you plug in a n=
ew USB audio device, such as a web-cam with microphone, it'll automatic=
ally assert itself as "device 0" unless you explicitly setup /etc=
/modprobe.d with ALSA card #'s for all devices before ever plugging the=
m in.
The issue is that the USB audio devices "bind&quot=
; first, so if you have a PCI or PCIe soundcard as device 0, such as your b=
uiltin mobo sound, or an add-on Delta-66 or Audiophile 24/96, the "car=
d" will fail because the random new USB device has already grabbed the=
device.
One solution to this is to leave "device 0" u=
nbound. That way, whenever you accidentally plugin a USB device with sound,=
it automatically gets assigned as device 0, instead of disabling whatever =
PCI card should have been bound to that device.=C2=A0
FYI, here's the=C2=A0/etc/modprobe.d/snd.conf I set=
up on my son's computer to ensure consistent numbering of ALSA audio de=
vices:
##
## 0 [NVidia =C2=A0 =C2=A0 =C2=A0 =C2=A0 ]: HDA-Intel - HDA NVidia
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0HDA NVidia at 0xdfff8000 irq 21
alias snd-card-0 snd-hda-intel
options snd-hda-intel index=3D0
##
## 1 [M66 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0]: ICE1712 - M Audio Del=
ta 66
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0M Audio Delta 66 at 0xe880, irq 21
alias snd-card-1 snd-ice1712
options snd-ice1712 index=3D1 omni=3D1
##
## 2 [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=A0Emagic MT4 at usb-0000:00:04.0-2, full speed
alias snd-card-2 snd-usb-audio
##
## 3 [LPK25 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0]: USB-Audio - LPK25
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0AKAI professional LLC LPK25 at usb-0000:00:02.0-1, full speed
alias snd-card-3 snd-usb-audio
##
## 4 [WE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ]: USB-Audio - DJ Consol=
e (WE)
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0Hercules DJ Console (WE) at usb-0000:00:02.0-2, full speed
alias snd-card-4 snd-usb-audio
##
## 5 [KQ245AA =C2=A0 =C2=A0 =C2=A0 =C2=A0]: USB-Audio - HP Prem AF Webcam K=
Q245AA
## =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0HP Prem AF Webcam KQ245AA HP Prem AF Webcam KQ245AA at usb-0000:00:02=
.1-2, high
alias snd-card-5 snd-usb-audio
##
## ROOT-coggie-16-/etc/modprobe.d> lsusb
## ...
## Bus 004 Device 006: ID 0582:0005 Roland Corp. Edirol UM-2 MIDI Adapter
## Bus 004 Device 003: ID 086a:0003 Emagic Soft- und Hardware GmbH MT4
## Bus 004 Device 002: ID 06f8:b000 Guillemot Corp. Hercules DJ Console
## Bus 003 Device 002: ID 09e8:0076 AKAI =C2=A0Professional M.I. Corp.=C2=
=A0
## Bus 001 Device 003: ID 04f2:a13d Chicony Electronics Co., Ltd=C2=A0
## ...
options snd-usb-audio index=3D2,3,4,5 vid=3D0x086a,0x09e8,0x06f8,0x04f2 pid=
=3D0x0003,0x0076,0xb000,0xa13d-- Nie=
lshttp://nielsmayer.com

--001636ed6966f5d2230484c14303--

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

Messages in current thread:
[LAU] Audiophile 2496 or the Delta 66, Ivan K, (Sat Apr 17, 7:03 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, ailo, (Sun Apr 18, 1:35 am)
Re: [LAU] Audiophile 2496 or the Delta 66, Joshua D. Boyd, (Sun Apr 18, 4:56 am)
Re: [LAU] Audiophile 2496 or the Delta 66, Charles Henry, (Wed Apr 21, 2:11 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Arnold Krille, (Wed Apr 21, 3:27 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Niels Mayer, (Wed Apr 21, 3:58 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Arnold Krille, (Wed Apr 21, 5:11 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Folderol, (Wed Apr 21, 2:54 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, ailo, (Sun Apr 18, 1:46 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Daniel Worth, (Mon Apr 19, 1:46 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Paul Coccoli, (Tue Apr 20, 5:56 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Niels Mayer, (Tue Apr 20, 6:58 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Peter Nelson, (Wed Apr 21, 10:17 am)
Re: [LAU] Audiophile 2496 or the Delta 66, Jack O'Quin, (Wed Apr 21, 2:00 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Peter Nelson, (Thu Apr 22, 2:45 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Peder Hedlund, (Sat Apr 17, 7:49 pm)
Re: [LAU] Audiophile 2496 or the Delta 66, Brett McCoy, (Sat Apr 17, 7:45 pm)