You are not logged in.

#1 2008-10-23 01:32:18

vsmoraes
Member
Registered: 2008-10-23
Posts: 10

USB Headset problems

Hi there!!!
I'm trying to get working my usb headset but i'm facing some problems...

I have added these lines to /etc/modprobe.conf:

alias snd-card-0 snd-usb-audio
alias sound-slot-0 snd-usb-audio
options snd-usb-audio index=0
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda- intel index=-2

All modules are loaded and the headset appear in lsusb.
The problem:
When i boot with the headset connected, the sound works fine in it but, if i remove it the sound does not come from anywhere.
If i boot without the headset no sound come from my laptop.
I want to get the sound working on the headset, if its connected, or in the default sound card of the pc if not.

I have read some threads here, but none solved my problem.
Can anyone help me?

Some interesting info:

lsusb:

Bus 003 Device 001: ID 1d6b:0001  
Bus 002 Device 001: ID 1d6b:0002  
Bus 001 Device 005: ID 046d:0a02 Logitech, Inc. 
Bus 001 Device 001: ID 1d6b:0001

lsmod |grep '^snd'

snd_pcsp               11040  0 
snd_seq_midi            8320  0 
snd_usb_audio          81920  0 
snd_usb_lib            17024  1 snd_usb_audio
snd_hda_intel         368816  7 
snd_rawmidi            21504  2 snd_seq_midi,snd_usb_lib
snd_seq_oss            31872  0 
snd_seq_midi_event      8192  2 snd_seq_midi,snd_seq_oss
snd_seq                49968  5 snd_seq_midi,snd_seq_oss,snd_seq_midi_event
snd_seq_device          8332  4 snd_seq_midi,snd_rawmidi,snd_seq_oss,snd_seq
snd_hwdep               8964  2 snd_usb_audio,snd_hda_intel
snd_pcm_oss            40192  0 
snd_pcm                69636  6 snd_pcsp,snd_usb_audio,snd_hda_intel,snd_pcm_oss
snd_timer              21384  4 snd_seq,snd_pcm
snd_page_alloc          9224  2 snd_hda_intel,snd_pcm
snd_mixer_oss          16512  1 snd_pcm_oss
snd                    50724  22 snd_pcsp,snd_usb_audio,snd_hda_intel,snd_rawmidi,snd_seq_oss,snd_seq,snd_seq_device,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss

Offline

#2 2008-10-23 16:43:52

vsmoraes
Member
Registered: 2008-10-23
Posts: 10

Re: USB Headset problems

anyone?

Offline

#3 2008-10-23 17:57:10

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: USB Headset problems

The problem is that alsa (assuming that's what you use) doesn't do any card switching automatically - it decides on boot which card will be default, and sticks with that choice, even if the card is not available later on.

If you're using KDE or gnome, you can select the card used in their respective control centers (whatever they're called) - but that only affects programs that are using sound systems from these DEs. Also you can select which card to use in some programs themselves (like skype).

But, if you want to let alsa know which card to use, I think the config file for that is ~/.asoundrc
There's a python script which makes the management a bit easier (since the syntax is not very friendly) - asoundconf. Here's a thread where someone had a similar problem, and also there's a link where you can get the script: http://bbs.archlinux.org/viewtopic.php?id=39230

EDIT: by the way, I have a similar setup as you, and I didn't do any modprobe.conf modifications - the correct modules were loaded automatically.

Last edited by bender02 (2008-10-23 17:58:38)

Offline

Board footer

Powered by FluxBB