Article 552E1 ALSA - 2 Default Devices (Output + Input)? W/ Device Labels

ALSA - 2 Default Devices (Output + Input)? W/ Device Labels

by
concorde
from LinuxQuestions.org on (#552E1)
How can I set up ALSA so that my output device (USB DAC) is the default device, but my input device (USB microphone) works as well?

I read on a thread elsewhere that you can put this in your ~/.asoundrc:

Code:pcm.!default {
type asym
playback.pcm
{
type hw
card 0
device 0
}
capture.pcm
{
type hw
card 1
device 0
}
}Assuming this works (obviously, with the correct card number e.g. card 2), how can this be done with, for want of the right term, permanent device labels?

I regularly turn on and off my USB DAC's and the ordering of the DAC's and the microphone gets messed up, so using "card 0" for my DAC does not consistently work.latest?d=yIl2AUoC8zA latest?i=Gxs7rIgMN-Y:9gaThtghc1k:F7zBnMy latest?i=Gxs7rIgMN-Y:9gaThtghc1k:V_sGLiP latest?d=qj6IDK7rITs latest?i=Gxs7rIgMN-Y:9gaThtghc1k:gIN9vFwGxs7rIgMN-Y
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments