From: David van Moolenbroek Date: Fri, 17 Aug 2012 16:05:02 +0000 (+0000) Subject: libaudiodriver: call drv_init() again X-Git-Tag: v3.2.1~361 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/host.html?a=commitdiff_plain;h=9821bbf780eda7e27a693db15f7dac10a512098d;p=minix.git libaudiodriver: call drv_init() again --- 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++) {