ucm: move macros and evali substitution to Syntax 6

There should be printed an error when the new configuration
blocks are used with the older alsa-lib.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-18 08:45:33 +02:00
parent 55340cf96a
commit b45fbeee34
2 changed files with 6 additions and 6 deletions

View file

@ -367,8 +367,8 @@ static int evaluate_define_macro(snd_use_case_mgr_t *uc_mgr,
return -EINVAL;
}
if (uc_mgr->conf_format < 5) {
uc_error("DefineMacro is supported in v5+ syntax");
if (uc_mgr->conf_format < 6) {
uc_error("DefineMacro is supported in v6+ syntax");
return -EINVAL;
}
@ -481,8 +481,8 @@ static int evaluate_macro(snd_use_case_mgr_t *uc_mgr,
return -EINVAL;
}
if (uc_mgr->conf_format < 5) {
uc_error("Macro is supported in v5+ syntax");
if (uc_mgr->conf_format < 6) {
uc_error("Macro is supported in v6+ syntax");
return -EINVAL;
}