mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
ucm: make sure active modifier and device lists are initialised
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
8524941f2a
commit
02bc123aae
1 changed files with 2 additions and 0 deletions
|
|
@ -585,6 +585,8 @@ int snd_use_case_mgr_open(snd_use_case_mgr_t **mgr,
|
||||||
INIT_LIST_HEAD(&uc_mgr->verb_list);
|
INIT_LIST_HEAD(&uc_mgr->verb_list);
|
||||||
INIT_LIST_HEAD(&uc_mgr->default_list);
|
INIT_LIST_HEAD(&uc_mgr->default_list);
|
||||||
INIT_LIST_HEAD(&uc_mgr->value_list);
|
INIT_LIST_HEAD(&uc_mgr->value_list);
|
||||||
|
INIT_LIST_HEAD(&uc_mgr->active_modifiers);
|
||||||
|
INIT_LIST_HEAD(&uc_mgr->active_devices);
|
||||||
pthread_mutex_init(&uc_mgr->mutex, NULL);
|
pthread_mutex_init(&uc_mgr->mutex, NULL);
|
||||||
|
|
||||||
uc_mgr->card_name = strdup(card_name);
|
uc_mgr->card_name = strdup(card_name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue