ucm: add cfg-save command

Allow to save whole (or partial) local UCM alsa library configuration
to a file.

Syntax (saves key1.key2 sub-tree):

	Sequence [
		cfg-save "/tmp/my-file.conf:key1.key2"
	]

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-05-14 12:20:18 +02:00
parent f821f09727
commit 5e7c507152
4 changed files with 56 additions and 0 deletions

View file

@ -56,6 +56,7 @@
#define SEQUENCE_ELEMENT_TYPE_CTL_REMOVE 9
#define SEQUENCE_ELEMENT_TYPE_CMPT_SEQ 10
#define SEQUENCE_ELEMENT_TYPE_SYSSET 11
#define SEQUENCE_ELEMENT_TYPE_CFGSAVE 12
struct ucm_value {
struct list_head list;
@ -78,6 +79,7 @@ struct sequence_element {
char *cset;
char *exec;
char *sysw;
char *cfgsave;
struct component_sequence cmpt_seq; /* component sequence */
} data;
};