alsa: conf - use card number roots for device redirects

The change device definitions (pcm.front etc.) from the driver
roots (cards.<DRIVER_NAME>) to the card number roots (cards.<CARDNO>).

This will allow us to do custom overrides (like UCM) in
/var/lib/alsa/card<CARDNO>.conf.d.

For dmix and dsnoop default values, use the card ID instead
the card driver name. It's more flexible.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-05-04 20:48:52 +02:00
parent 63f7745be5
commit a468505c96
17 changed files with 21 additions and 21 deletions

View file

@ -69,7 +69,7 @@ pcm.!dsnoop {
strings [
"cards."
{
@func card_driver
@func card_id
card $CARD
}
".pcm.dsnoop.period_size"
@ -84,7 +84,7 @@ pcm.!dsnoop {
strings [
"cards."
{
@func card_driver
@func card_id
card $CARD
}
".pcm.dsnoop.period_time"
@ -99,7 +99,7 @@ pcm.!dsnoop {
strings [
"cards."
{
@func card_driver
@func card_id
card $CARD
}
".pcm.dsnoop.periods"