diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-08-31 17:33:41 +1000 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:29 +1100 |
commit | 993a6fb52ee4a39775b7e14394650213f18913f2 (patch) | |
tree | 8441f92bce91f2b5f36bb78147c83f1a92a4beb2 /core.c | |
parent | 55d9a9f22aa909449925da9cb2e8de4d5a41bdfb (diff) |
Fix initialization of the audiopath_list
This wasn't being initialised properly, and NULL audiopaths were not being detected.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'core.c')
-rw-r--r-- | core.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |