]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: allow passing variables through ucm open string
authorJaroslav Kysela <perex@perex.cz>
Mon, 16 May 2022 11:16:01 +0000 (13:16 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 16 May 2022 12:17:31 +0000 (14:17 +0200)
commit11ec9e497ee542dc987ab191abee16440336bfe4
treec5a1be88fd9da53f7738a2b5d417ab14c7c79146
parent46e991c9ce629d5541db22c660c3e92a2f66c0d3
ucm: allow passing variables through ucm open string

It is useful to pass information like application capabilities
to the UCM configuration parser. Those variables are prefixed
with '@' for the configuration files.

An example:

   "<<<v1='a b c',x=12>>>hw:1"

Variables can substituted in the configuration:

   "${var:@v1}" -> "a b c"
   "${var:@x}" -> 12

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/main.c
src/ucm/parser.c