mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
ucm: implement AlwaysTrue Condition.Type
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
676e2f0811
commit
7c9f0fa436
1 changed files with 5 additions and 2 deletions
|
|
@ -285,12 +285,15 @@ static int if_eval(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(type, "ControlExists") == 0)
|
if (strcmp(type, "AlwaysTrue") == 0)
|
||||||
return if_eval_control_exists(uc_mgr, eval);
|
return 1;
|
||||||
|
|
||||||
if (strcmp(type, "String") == 0)
|
if (strcmp(type, "String") == 0)
|
||||||
return if_eval_string(uc_mgr, eval);
|
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)
|
if (strcmp(type, "RegexMatch") == 0)
|
||||||
return if_eval_regex_match(uc_mgr, eval);
|
return if_eval_regex_match(uc_mgr, eval);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue