]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: support optional ('-' prefixed) device references in Syntax 10
authorJaroslav Kysela <perex@perex.cz>
Mon, 23 Nov 2026 14:18:12 +0000 (15:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 24 Nov 2026 10:23:35 +0000 (11:23 +0100)
commitd370f2af4d94f5604112f6225619c4f48d14a60d
tree6baa47ea40317ecd5ededf3b46492ce7bdc67d25
parentf44e0abd5382f519cc6fa69850c34e6e9c09d5f5
ucm: support optional ('-' prefixed) device references in Syntax 10

A device name in a SupportedDevice or ConflictingDevice list may be
prefixed with '-' to mark the reference as optional. A '-' prefixed name
that matches no device is silently dropped instead of aborting parsing;
when the device exists, the prefix is stripped and it behaves like a
normal reference. This lets shared configuration snippets reference
devices that may or may not be present without conditional blocks.

Gated on conf_format >= 10.

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