ucm: implement enadev2 and disdev2 sequence commands

It may be useful to call the sequences from devices from
the verb sequences or another device sequences.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-19 10:08:48 +02:00
parent c3a5d32ac3
commit 4b66e5fbce
5 changed files with 90 additions and 22 deletions

View file

@ -57,6 +57,8 @@
#define SEQUENCE_ELEMENT_TYPE_CMPT_SEQ 10
#define SEQUENCE_ELEMENT_TYPE_SYSSET 11
#define SEQUENCE_ELEMENT_TYPE_CFGSAVE 12
#define SEQUENCE_ELEMENT_TYPE_DEV_ENABLE_SEQ 13
#define SEQUENCE_ELEMENT_TYPE_DEV_DISABLE_SEQ 14
struct ucm_value {
struct list_head list;
@ -80,6 +82,7 @@ struct sequence_element {
char *exec;
char *sysw;
char *cfgsave;
char *device;
struct component_sequence cmpt_seq; /* component sequence */
} data;
};
@ -230,6 +233,7 @@ struct snd_use_case_mgr {
int suppress_nodev_errors;
const char *parse_variant;
int parse_master_section;
int sequence_hops;
/* UCM cards list */
struct list_head cards_list;