ucm: implement AlwaysTrue Condition.Type

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-06-24 19:17:49 +02:00
parent 676e2f0811
commit 7c9f0fa436

View file

@ -285,12 +285,15 @@ static int if_eval(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval)
return -EINVAL;
}
if (strcmp(type, "ControlExists") == 0)
return if_eval_control_exists(uc_mgr, eval);
if (strcmp(type, "AlwaysTrue") == 0)
return 1;
if (strcmp(type, "String") == 0)
return if_eval_string(uc_mgr, eval);
if (strcmp(type, "ControlExists") == 0)
return if_eval_control_exists(uc_mgr, eval);
if (strcmp(type, "RegexMatch") == 0)
return if_eval_regex_match(uc_mgr, eval);