[alsa-devel] [PATCH 05/11] ucm: make sure active modifier and device lists are initialised

Liam Girdwood lrg at slimlogic.co.uk
Tue Dec 21 23:11:54 CET 2010


Signed-off-by: Liam Girdwood <lrg at slimlogic.co.uk>
---
 src/ucm/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/ucm/main.c b/src/ucm/main.c
index 64e4279..fae89a2 100644
--- a/src/ucm/main.c
+++ b/src/ucm/main.c
@@ -587,6 +587,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->default_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);
 
 	uc_mgr->card_name = strdup(card_name);
-- 
1.7.1



More information about the Alsa-devel mailing list