ucm: execute SectionDefaults lately (when the first verb is set)

We need a way to set the SectionOnce at first before SectionDefaults.
It also does not make sense to run SectionDefaults when the API is
used only to query for values or so.

Execute the SectionDefaults commands only when the first verb
is set (before the verb specific commands).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-05-14 16:12:23 +02:00
parent e0da1d2a2a
commit afb5a9cf61
2 changed files with 13 additions and 8 deletions

View file

@ -226,6 +226,7 @@ struct snd_use_case_mgr {
/* default settings - sequence */
struct list_head default_list;
int default_list_executed;
/* default settings - value list */
struct list_head value_list;