switch default alsa card to USB

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

 



I'd like to switch the default alsa card on-the-fly when an USB sound
device is plugged into the system.

I kown how to write a proper udev rule, but I can't write a satisfying
asoundrc file. I tryed and it works with some applications, it supports
software mixer too, but it doesn't work with VLC, or Mixxx, they claim
that the default device is already busy or don't find any.

I read the alsa.conf file, where I found many option in the form:

defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.nonblock 1
[...]
etc.

followed by parametrized function like

pcm.hw {
	@args [ CARD DEV SUBDEV ]
        [...]
}

I'd like to use environmental variables to swith the default card, but I
don't understand how.

Any clue?
Thanks in andvance.
-- 
                     Dona i tuoi cicli di clock alla ricerca!
                     http://boinc.berkeley.edu/
                          --------------------


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
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