]> Zhao Yanbai Git Server - minix.git/commitdiff
libaudiodriver: call drv_init() again
authorDavid van Moolenbroek <david@minix3.org>
Fri, 17 Aug 2012 16:05:02 +0000 (16:05 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Fri, 24 Aug 2012 09:17:26 +0000 (09:17 +0000)
lib/libaudiodriver/audio_fw.c

index dba5247d80e62e9aea5ad829c4a8b81e392c26b8..d471abde80328127da90a3eb1a564574a930bd49 100644 (file)
@@ -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++) {