ucm: cfg-save - allow to save the sub-tree including root keys

The leading '+' in the keys specification add the key prefix
(sub-tree root identification) to the saved configuration.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-05-18 12:22:46 +02:00
parent 225d3aecb6
commit 0ee4642a69
2 changed files with 20 additions and 6 deletions

View file

@ -1607,8 +1607,8 @@ static int _snd_config_save_children(snd_config_t *config, snd_output_t *out,
unsigned int level, unsigned int joins,
int array);
static int _snd_config_save_node_value(snd_config_t *n, snd_output_t *out,
unsigned int level)
int _snd_config_save_node_value(snd_config_t *n, snd_output_t *out,
unsigned int level)
{
int err, array;
switch (n->type) {