mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
ucm: implement sysset sequence command
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2b418648cf
commit
1c6fb20232
5 changed files with 107 additions and 9 deletions
|
|
@ -772,6 +772,16 @@ static int parse_sequence(snd_use_case_mgr_t *uc_mgr,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (strcmp(cmd, "sysset") == 0) {
|
||||
curr->type = SEQUENCE_ELEMENT_TYPE_SYSSET;
|
||||
err = parse_string_substitute3(uc_mgr, n, &curr->data.sysset);
|
||||
if (err < 0) {
|
||||
uc_error("error: sysset requires a string!");
|
||||
return err;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strcmp(cmd, "usleep") == 0) {
|
||||
curr->type = SEQUENCE_ELEMENT_TYPE_SLEEP;
|
||||
err = parse_integer_substitute3(uc_mgr, n, &curr->data.sleep);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue