]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: remove @@LibraryVersion and @@SyntaxVersion variables
authorJaroslav Kysela <perex@perex.cz>
Fri, 21 Mar 2025 10:26:28 +0000 (11:26 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Mar 2025 10:26:32 +0000 (11:26 +0100)
It seems that version checking is more complicated:

Syntax is one-way settlement from the configuration files.
It cannot be conditional.

The library version string is hard to check with regex.

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

index 5a86b9cd589570fe219b5ba385e8647cda06e103..3a3c9c154f6e9de109ae33ecfdbddfc9424e404c 100644 (file)
@@ -1502,11 +1502,6 @@ const char *parse_open_variables(snd_use_case_mgr_t *uc_mgr, const char *name)
 
 skip:
        snd_config_delete(cfg);
-
-       uc_mgr_set_variable(uc_mgr, "@@LibraryVersion", SND_LIB_VERSION_STR);
-       snprintf(vname, sizeof(vname), "%04d", SYNTAX_VERSION_MAX);
-       uc_mgr_set_variable(uc_mgr, "@@SyntaxVersion", vname);
-
        return end + 3;
 }
 
index 025148f9a8825b930d9da0754644a337a0157cda..b8baeb5ec82000cd6db1e370234f4758de3337ee 100644 (file)
@@ -406,8 +406,6 @@ ${var:\<str\>}         | UCM parser variable (set using a _Define_ block)
 ${eval:\<str\>}        | Evaluate expression like *($var+2)/3* [**Syntax 5**]
 ${find-card:\<str\>}   | Find a card - see _Find card substitution_ section
 ${find-device:\<str\>} | Find a device - see _Find device substitution_ section
-@@LibraryVersion       | e.g. "1.2.14" [**Syntax 8**]
-@@SyntaxVersion        | e.g. "0008" (decimal base - no hex) [**Syntax 8**]
 
 General note: If two dollars '$$' instead one dolar '$' are used for the
 substitution identification, the error is ignored (e.g. file does not