summaryrefslogtreecommitdiffstats
path: root/media/libeffects/testlibs
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-07-29 06:50:24 -0700
committerEric Laurent <elaurent@google.com>2010-07-29 06:50:24 -0700
commit60e182437228312cc28469a5b0dfde77ac848e1a (patch)
treea530ccd1f62a8a46aeaa433ee92fed6666c3d6ea /media/libeffects/testlibs
parent39e94f8f723d445447fdee0822291e664b631f60 (diff)
downloadframeworks_av-60e182437228312cc28469a5b0dfde77ac848e1a.zip
frameworks_av-60e182437228312cc28469a5b0dfde77ac848e1a.tar.gz
frameworks_av-60e182437228312cc28469a5b0dfde77ac848e1a.tar.bz2
Fixed underrun in audioflinger mixer.
When all audio tracks have been disabled and the mixer is running idle before the output stream is placed in standby, the mixer sometimes fails to write to the output stream on time to avoid underrun. This is because the sleep period used to wait before the next write to output stream is too close to the actual buffer duration. In fact this sleep time is not critical as if we write too early to the output stream, the kernel driver will wait for free buffers from the audio DSP DMA and we will sleep anyways. The fix consists in dividing the calculated wait period by 2 to increase the margin. Change-Id: I5730887dc2ccce2a511bc858494a6f7da6b392a0
Diffstat (limited to 'media/libeffects/testlibs')
0 files changed, 0 insertions, 0 deletions