Hi Bill, Thanks, I will set up hotplug and give that a try. Michael On Thu, Feb 15, 2007 at 04:11:04PM -0800, Bill Unruh wrote: > On Thu, 15 Feb 2007, Michael Lara wrote: > > >Hi Ingo and Jean-Michel, > > > >Thank you both for your replies! My system is still stuck in pre-udev > >pre-history, so I will have to wait until I can try out the udev rules > >trick. > > What kernel is it running? Pre udev was hotplug which did the same thing. > Ie, you should be able to cobble together a hotplug script which unloads > the old driver of the onboard card when you plug in the usb card, then, > when that is unloaded, load the usb driver as the default and finally (or > not) load the onboard driver. On unplugging, unload both drivers, and then > reload the onboard on as default. > > > > >All the best > > > >Michael > > > >On Thu, Feb 15, 2007 at 10:50:36AM +0100, Ingo Müller wrote: > >>Hi! > >> > >>On the alsa-devel mailing list, there was a thread recently about how to > >>use udev to distribute card indexes. Maybe this could help you. > >> > >>http://thread.gmane.org/gmane.linux.alsa.devel/44498 > >> > >>Regards, Ingo > >> > >> > >>Michael Lara schrieb: > >>>Hello, > >>> > >>>Is it possible to define the removable card as the default in a system > >>>with > >>>a permanent, internal card and a removable (ie, USB) one? I know about > >>>passing 'index=i' to the driver modules, but I am having a hard time > >>>figuring out how to use that mechanism when one of the cards is > >>>removable. I > >>>would like to use the following simple rule: > >>> > >>>If the removable (usb) card is connected to the system, make it the > >>>default. > >>>Otherwise, use the internal card. > >>> > >>>The trouble is that, once the corresponding driver modules have been > >>>loaded > >>>with a given index number: > >>> > >>>/sbin/modprobe snd-usb-audio index=0 [for the removable card] > >>>/sbin/modprobe snd-intel8x0 index=1 [for the internal card] > >>> > >>>With this setup, aplay fails to produce sound when the removable card is > >>>not > >>>present since default is not set (there is no card with index 0). > >>> > >>>Can I somehow tell alsa (in /etc/asound.conf) that the card with the > >>>*lowest > >>>index* (ie, not necessarily the one with index=0) should be used as > >>>'default'? > >>> > >>>Thanks in advance for any help > >>> > >>>Michael > >> > >> > >>------------------------------------------------------------------------- > >>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.php&p=sourceforge&CID=DEVDEV > >>_______________________________________________ > >>Alsa-user mailing list > >>Alsa-user@xxxxxxxxxxxxxxxxxxxxx > >>https://lists.sourceforge.net/lists/listinfo/alsa-user > > > >------------------------------------------------------------------------- > >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.php&p=sourceforge&CID=DEVDEV > >_______________________________________________ > >Alsa-user mailing list > >Alsa-user@xxxxxxxxxxxxxxxxxxxxx > >https://lists.sourceforge.net/lists/listinfo/alsa-user > > > > -- > William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273 > Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324 > UBC, Vancouver,BC | Program in Cosmology | unruh@xxxxxxxxxxxxxx > Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/ ------------------------------------------------------------------------- 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.php&p=sourceforge&CID=DEVDEV _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user