mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
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:
parent
55340cf96a
commit
b45fbeee34
2 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue