You are not logged in.

#1 2012-06-07 17:14:35

weirddan455
Member
Registered: 2012-04-15
Posts: 213

USB Headset Keeps Switching ALSA Device Numbers

Every time I reboot my USB Headset (Turtle Beach PX3) gets a different device number when I run aplay -l.  I keep having to edit my /etc/asound.conf every time I reboot to tell it to use my headset as default because the device number is different each time.  Also, I use KDE and Phonon complains every time I boot up saying my headset is removed (it's not but it removes the old entry and creates a new one, bugging me about it every time I reboot).  I also have my sound card built into the motherboard (realtek) and my HDMI port on my Radeon 5970 (which I'm not using).  Those never caused problems before I plugged in my headset though.

Here's the current output of aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PC [Turtle Beach PX3 (PC)], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

This time it's card 1, last time it was card 2.  It may have been card 0 before too.  It just kind of randomizes every time hmm

Offline

#2 2012-06-07 18:29:39

thof
Member
Registered: 2012-05-27
Posts: 16

Re: USB Headset Keeps Switching ALSA Device Numbers

You could try to add following lines to your /etc/modprobe.d/modprobe.conf file to force specific order:

options snd-usb-audio index=0
options snd-hda-intel index=1

Offline

#3 2012-06-07 20:48:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: USB Headset Keeps Switching ALSA Device Numbers

Cool idea thof, I wasn't aware of that option.

I was going to make a different suggestion which could also work if thof's doesn't: asoundrc can use "names" rathre than index numbers for setting the defaults.  `defaults.pcm.card 2` can become `defaults.pcm.card "Intel"` or whatever is appropriate.

This can be very handy as in the absence of Thof's suggestion, device indices seem to be assigned randomly on each boot.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB