Re: Switch default card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/10/8 Alessandro Massignan <ff0000.it@xxxxxxxxx>:
> 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 laptop usage it's card0,
> the internal one) so
>
> default -> card0
>
> and when i plug the USB card the link or reference as you want switches:
>
> default -> card1
>
> If i work on udev level (my skill isn't the best on it) it's not a simple
> "link"/"reference" switching it's a totally device renaming... Am i wrong?
> In better way i don't want to act (rename) devices, i would redirect
> the sound stream to USB card only when it's plugged in.
> I read the "routing" plugin/function on asoundrc tutorial, can it become
> the solution?
>
>
> Thanks to all.
> ff0000

You can look at alsa hooks, a runtime configuration function that will
be called when a USB soundcard is plugged.
In this function you can change the default soundcard. Unfortunately i
never used them.

bye,
   Dino

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux