mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-26 07:00:11 -05:00
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>
42 lines
539 B
Text
42 lines
539 B
Text
#
|
|
# Default control device
|
|
#
|
|
|
|
ctl.!default {
|
|
@args [ CARD ]
|
|
@args.CARD {
|
|
type string
|
|
default {
|
|
@func getenv
|
|
vars [
|
|
ALSA_PCM_CARD
|
|
ALSA_CARD
|
|
]
|
|
default {
|
|
@func refer
|
|
name defaults.ctl.card
|
|
}
|
|
}
|
|
}
|
|
type empty
|
|
child {
|
|
# use card-specific definition if exists
|
|
@func refer
|
|
name {
|
|
@func concat
|
|
strings [
|
|
"cards."
|
|
{
|
|
@func card_inum
|
|
card $CARD
|
|
}
|
|
".ctl.default:CARD=" $CARD
|
|
]
|
|
}
|
|
default {
|
|
type hw
|
|
card $CARD
|
|
}
|
|
}
|
|
hint.description "Default Control Device"
|
|
}
|