[Alsa-user] switch between two soundcards

2006-09-19 Thread Jürgen Herrmann
hi!

i have a laptop with an intel8x0 based audio chip and from time to
time i want to use my usb soundcard. is there a way to unload the
intel8x0 driver and insert the snd-usb-audio instead of it?

my goal is that applications can always use alsa hw:0:0 without
reconfiguration, maybe this could even be automated via hotplug
when (dis)connecting the usb device?

regards, juergen herrmann
___

 XLhost.de - eXperts in Linux hosting 

Jürgen Herrmann
Konrad Adenauer Allee 43, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] switch between two soundcards

2006-09-19 Thread Lee Revell
On Wed, 2006-09-20 at 00:18 +0200, Jürgen Herrmann wrote:
 
 my goal is that applications can always use alsa hw:0:0 without
 reconfiguration, maybe this could even be automated via hotplug
 when (dis)connecting the usb device? 

Applications shouldn't use hw:0,0 anyway, it only supports one app
playing at a time, and will fail if the sample rate and format don't
exactly match the device's capabilities.

The correct solution is for apps to use the ALSA device default, and
for a userspace application (like gnome-sound-properties) to change the
default device when sound cards are plugged or unplugged or when the
user requests it.

There's no way to have apps that are playing audio when the device
changes to seamlessly switch to the other device though.

Lee


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] switch between two soundcards

2006-09-19 Thread James Courtier-Dutton
Jürgen Herrmann wrote:
 hi!
 
 i have a laptop with an intel8x0 based audio chip and from time to
 time i want to use my usb soundcard. is there a way to unload the
 intel8x0 driver and insert the snd-usb-audio instead of it?
 
 my goal is that applications can always use alsa hw:0:0 without
 reconfiguration, maybe this could even be automated via hotplug
 when (dis)connecting the usb device?
 
 regards, juergen herrmann

Have the application use the default or plug:front device, and then 
edit the .asoundrc file


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user