From 9821bbf780eda7e27a693db15f7dac10a512098d Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Fri, 17 Aug 2012 16:05:02 +0000 Subject: [PATCH] libaudiodriver: call drv_init() again --- lib/libaudiodriver/audio_fw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/libaudiodriver/audio_fw.c b/lib/libaudiodriver/audio_fw.c index dba5247d8..d471abde8 100644 --- a/lib/libaudiodriver/audio_fw.c +++ b/lib/libaudiodriver/audio_fw.c @@ -213,6 +213,12 @@ static int init_driver(void) { static int executed = 0; sub_dev_t* sub_dev_ptr; + /* initialize basic driver variables */ + if (drv_init() != OK) { + printf("libaudiodriver: Could not initialize driver\n"); + return EIO; + } + /* init variables, get dma buffers */ for (i = 0; i < drv.NrOfSubDevices; i++) { -- 2.44.0