ucm: fix the reload call (snd_use_case_mgr_reload)

Handle the local configuration and macros trees properly.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-27 14:28:13 +02:00
parent 4119e33d28
commit 0418fd32c7
3 changed files with 16 additions and 12 deletions

View file

@ -2807,6 +2807,14 @@ int uc_mgr_import_master_config(snd_use_case_mgr_t *uc_mgr)
const char *name;
int err;
err = snd_config_top(&uc_mgr->local_config);
if (err < 0)
return err;
err = snd_config_top(&uc_mgr->macros);
if (err < 0)
return err;
name = uc_mgr->card_name;
if (strncmp(name, "hw:", 3) == 0) {
err = get_by_card(uc_mgr, name);