Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB headset hotplugging
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
CloudBolt
Apprentice
Apprentice


Joined: 04 Feb 2006
Posts: 192
Location: The Netherlands

PostPosted: Mon Dec 18, 2006 4:30 pm    Post subject: USB headset hotplugging Reply with quote

I have a Logitech headset, which uses snd-usb-audio, and which works perfectly. I also have an onboard nForce 4 AC97 audio controller, which uses snd-intel8x0 as its driver, and also works fine. but now my problem, I want ALSA to set the default output device to my headset whenever it's plugged in, and to my onboard audio controller whenever the headset isn't plugged in. is there any way to do this?
thanks in advance! :D
_________________
GNU/Linux is an operating system.
IBM OS/2 is half an operating system.
Windows is a shell.
DOS is a boot partition virus.
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Mon Dec 18, 2006 5:05 pm    Post subject: Re: USB headset hotplugging Reply with quote

CloudBolt wrote:
I have a Logitech headset, which uses snd-usb-audio, and which works perfectly. I also have an onboard nForce 4 AC97 audio controller, which uses snd-intel8x0 as its driver, and also works fine. but now my problem, I want ALSA to set the default output device to my headset whenever it's plugged in, and to my onboard audio controller whenever the headset isn't plugged in. is there any way to do this?
thanks in advance! :D


I don't know the steps for changing the default audio output device (I've only ever had one ;)), but I can tell you that you can have udev call a script or command when the headset is connected and removed. This should allow you to switch between the two, have a look at this http://www.reactivated.net/writing_udev_rules.html#external-run should get you going as far as udev is concerned.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum