From 993a6fb52ee4a39775b7e14394650213f18913f2 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Fri, 31 Aug 2018 17:33:41 +1000 Subject: Fix initialization of the audiopath_list This wasn't being initialised properly, and NULL audiopaths were not being detected. Signed-off-by: Mark Farrugia --- core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core.c') diff --git a/core.c b/core.c index 479b93e..bf31f0b 100644 --- a/core.c +++ b/core.c @@ -70,7 +70,7 @@ static struct avirt_coreinfo coreinfo = { .pcm_buff_complete = pcm_buff_complete_cb, }; -static struct list_head audiopath_list; +static LIST_HEAD(audiopath_list); /** * avirt_probe - Register ALSA soundcard @@ -415,9 +415,6 @@ static int __init core_init(void) D_INFOK("Alsa Virtual Sound Driver avirt-%d.%d.%d", coreinfo.version[0], coreinfo.version[1], coreinfo.version[2]); - // Initialize audiopaths linked list - INIT_LIST_HEAD(&audiopath_list); - err = platform_driver_register(&avirt_driver); if (err < 0) return err; -- cgit 1.2.3-korg