[alsa-devel] Changing default card using its name

Jaroslav Kysela perex at perex.cz
Tue Nov 23 10:11:44 CET 2010


On Tue, 23 Nov 2010, Pavel Hofman wrote:

> Pavel Hofman napsal(a):
>> Hi,
>>
>> Please excuse my ignorance but I have not been able to figure out this
>> simple task. Nowadays most PCs have multiple soundcards (onboard plus
>> HDMI, often another PCI card). Order of the cards is not stable. How do
>> I define in /etc/asound.conf another default card using its name and
>> keep the PCMs defined by its corresponding alsa card/pcm config files?
>>
>> In my case aplay -L:
>>
>> defaults.ctl.card "CMI8768"
>>
>> which IMO would have been the simplest solution.
>>
>
> Well, adding the exclamation mark
>
> !defaults.pcm.card "CMI8768"

What about:

defaults.pcm.!card "CMI8768"

 					Jaroslav

-----
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list