[Alsa-user] optional card

2009-12-09 Thread Alessandro Massignan
Hi all, few moths ago i ask forthe same problem but with those hints i can't figure out how to do what i want to do... I have a couple of ugly usb speaker (snd-usb-audio) and sometime i use it on my notebook; is there a way with .asoundrc that configure the card only when it's plugged? What i want

Re: [Alsa-user] Switch default card

2009-10-09 Thread Alessandro Massignan
Hi, > You can look at alsa hooks, a runtime configuration function that will > be called when a USB soundcard is plugged. Ouch! I give a try! :-) > In this function you can change the default soundcard. Unfortunately i > never used them. Nevermind and thanks for suggestion... I'll tell you if i s

Re: [Alsa-user] Switch default card

2009-10-08 Thread Alessandro Massignan
Hi Dino, thanks for reply! :-) > I think that udev can does this job: >    http://alsa.opensrc.org/index.php/Udev Mmmh, i was wondering if any asoundrc's magic could do this job... Maybe I explained the problem in a very dirty way; what i think is to have a "default" card configured (in normal la

[Alsa-user] Switch default card

2009-10-08 Thread Alessandro Massignan
Hi all, is there a method to switch an USB card as default (card 0) when i plug it? I've a laptop with internal card and when i plug an USB card i wish that all running applications output sound to the USB card (without restarting them) and when i disconnect it the sound come back to internal card

[Alsa-user] USB card question

2009-10-07 Thread Alessandro Massignan
Hi all, today i start playing with ALSA to accomplished a task but i don't if it's the right way. My notebook has an internal card (snd_hda_intel) and optional i've got a pair of USB speakers with internal card (handled by snd_usb_audio); i'm wondering if there's a way (probably via $HOME/.asoundr