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

@ -27,7 +27,7 @@ ctl.!default {
strings [
"cards."
{
@func card_driver
@func card_inum
card $CARD
}
".ctl.default:CARD=" $CARD