Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a0d82df authored by Eric Laurent's avatar Eric Laurent
Browse files

audioflinger: modify fast mixer overrun management

Do not force sleep when an overrun occurs. This was for non
blocking audio HAL and is unused.
Keep statistics on overruns.

Bug 6605215.

Change-Id: I295455d4562201aa3814c88bdd6e52c9226712af
parent 67c0a58e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -483,7 +483,10 @@ bool FastMixer::threadLoop()
                                (int) sec, nsec / 1000000L);
                        dumpState->mOverruns++;
                    }
                    sleepNs = periodNs - overrunNs;
                    // Code for non blocking audio HAL. Sleep time must be tuned to allow
                    // catching up after an underrun
                    //     sleepNs = periodNs - overrunNs;
                    sleepNs = -1;
                } else {
                    sleepNs = -1;
                    ignoreNextOverrun = false;