From: Jaroslav Kysela Date: Thu, 13 May 2021 14:28:04 +0000 (+0200) Subject: ucm2: add initial alsa library helpers X-Git-Tag: v1.2.5~30 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=548036b8ecc92d4e8e2070046551fb0b8acb7d96;p=alsa-ucm-conf.git ucm2: add initial alsa library helpers Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/lib/card-init.conf b/ucm2/lib/card-init.conf new file mode 100644 index 0000000..85b011b --- /dev/null +++ b/ucm2/lib/card-init.conf @@ -0,0 +1,10 @@ +# +# Manage directory for the card specific configuration +# + +Define.LibDir "/var/lib/alsa/card${CardNumber}.conf.d" + +FixedBootSequence [ + exec "/bin/rm -rf ${var:LibDir}/" + exec "/bin/mkdir -p -m 0755 ${var:LibDir}" +] diff --git a/ucm2/lib/generic.conf b/ucm2/lib/generic.conf new file mode 100644 index 0000000..d2b78c9 --- /dev/null +++ b/ucm2/lib/generic.conf @@ -0,0 +1,29 @@ +# +# This is generic UCM configuration for alsa-lib +# Only hw devices are exposed to the UCM application +# Users are not allowed to overwrite this configuration +# + +LibraryConfig.generic.SubstiConfig { + + ctl.hw { + @args [ CARD ] + @args.CARD.type string + type hw + card $CARD + } + + pcm.hw { + @args [ CARD DEV SUBDEV ] + @args { + CARD.type string + DEV.type integer + SUBDEV.type integer + } + type hw + card $CARD + device $DEV + subdevice $SUBDEV + } + +}