]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: add info-card substitution (Syntax 9)
authorJaroslav Kysela <perex@perex.cz>
Mon, 9 Feb 2026 15:02:01 +0000 (16:02 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 18 Feb 2026 11:21:52 +0000 (12:21 +0100)
commitc5d903b0b4bcbe693096f124d993ec36a6856f86
tree97f78291414c040f23566e31888e5bf3726d023c
parent1823b4cd4b1469ec506fde5795fc0221144fb3f1
ucm: add info-card substitution (Syntax 9)

Implement ${info-card:} substitution to retrieve specific fields from
a card's information structure by card number or ID. Unlike ${find-card:}
which searches through cards using regex, ${info-card:} directly queries
a specific card.

Arguments:
  card=<STR>   card number or card ID (string identifier)
  field=<STR>  number, id, driver, name, longname, mixername, components

Allow card and field parameters to reference UCM variables by prefixing
with $ character. When the first character is $, the value is resolved
using uc_mgr_get_variable().

Example usage:
  ${info-card:card=$MyCard,field=$MyField}

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