]> Zhao Yanbai Git Server - minix.git/commitdiff
libaudiodriver: buffer accounting bugfix 84/3384/1 196/head
authorDavid van Moolenbroek <david@minix3.org>
Wed, 28 Dec 2016 13:12:15 +0000 (13:12 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Wed, 28 Dec 2016 13:12:58 +0000 (13:12 +0000)
This fixes #191.

Change-Id: I93752161e466b2d03bbcb0838705aab9619c05c8

minix/lib/libaudiodriver/audio_fw.c

index ff3ce5cfd94d43f718e1283a3ce170d6ad756f40..56a91c99c59be5473bfbd51737374b1b4996e3b3 100644 (file)
@@ -609,6 +609,7 @@ static void handle_int_read(int sub_dev_nr)
                        sub_dev_ptr->DmaLength -= 1;
                        sub_dev_ptr->DmaReadNext = 
                                (sub_dev_ptr->DmaReadNext + 1) % sub_dev_ptr->NrOfDmaFragments;
+                       sub_dev_ptr->BufLength += 1;
                        sub_dev_ptr->BufFillNext = 
                                (sub_dev_ptr->BufFillNext + 1) % sub_dev_ptr->NrOfExtraBuffers;
                }