diff options
author | Eric Laurent <elaurent@google.com> | 2013-10-04 16:23:48 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-10-04 16:37:07 -0700 |
commit | ea0fadeb5d81ef3cb7f9db458c9033d628bdb86a (patch) | |
tree | 1650f71cf339cd9d561377e239e2a12f7b08cffc /media/libmedia/IAudioFlinger.cpp | |
parent | 026c5b07fefd36e0e2dd7035c2898d0e28596d0f (diff) | |
download | frameworks_av-ea0fadeb5d81ef3cb7f9db458c9033d628bdb86a.zip frameworks_av-ea0fadeb5d81ef3cb7f9db458c9033d628bdb86a.tar.gz frameworks_av-ea0fadeb5d81ef3cb7f9db458c9033d628bdb86a.tar.bz2 |
audioflinger: offload: fix pause/flush/resume
If a pause/flush/resume sequence is fast enough, resume is received while
we are still in PAUSING state in which case it is a NOP. If this happens,
flush is still forwarded to the audio HAL but is not preceeded by a pause
which can cause problems to the audio DSP.
It is necessary to preserve the flush as this sequence is typical to a seek.
The fix consists in forcing a pause/resume when a flush request must be
executed and the audio HAL has not been paused previously.
Bug: 11081559.
Change-Id: Ib84ed26d503a61c05933b923ec556b10cedfe140
Diffstat (limited to 'media/libmedia/IAudioFlinger.cpp')
0 files changed, 0 insertions, 0 deletions