mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
ucm: Define/DefineRegex is supported in Syntax 3
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
a53a104f79
commit
690cdab6b4
1 changed files with 10 additions and 0 deletions
|
|
@ -255,6 +255,11 @@ static int evaluate_regex(snd_use_case_mgr_t *uc_mgr,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (uc_mgr->conf_format < 3) {
|
||||
uc_error("DefineRegex is supported in v3+ syntax");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
snd_config_for_each(i, next, d) {
|
||||
n = snd_config_iterator_entry(i);
|
||||
err = snd_config_get_id(n, &id);
|
||||
|
|
@ -292,6 +297,11 @@ static int evaluate_define(snd_use_case_mgr_t *uc_mgr,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (uc_mgr->conf_format < 3) {
|
||||
uc_error("Define is supported in v3+ syntax");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
snd_config_for_each(i, next, d) {
|
||||
n = snd_config_iterator_entry(i);
|
||||
err = snd_config_get_id(n, &id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue