summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/PlaybackTracks.h
diff options
context:
space:
mode:
authorHaynes Mathew George <hgeorge@codeaurora.org>2014-01-15 12:32:55 -0800
committerEric Laurent <elaurent@google.com>2014-02-06 11:48:22 -0800
commit7844f679be8d94c5cdf017f53754cb68ee2f00da (patch)
tree60b91c8d8d95f49d98b1c35110b6f4fe5498cb62 /services/audioflinger/PlaybackTracks.h
parent0f02f265123b7ef2fd6ac09ff70cde26eb5559ad (diff)
downloadframeworks_av-7844f679be8d94c5cdf017f53754cb68ee2f00da.zip
frameworks_av-7844f679be8d94c5cdf017f53754cb68ee2f00da.tar.gz
frameworks_av-7844f679be8d94c5cdf017f53754cb68ee2f00da.tar.bz2
AudioFlinger: Modify flush handling for offload path
Do not allow an offload track to directly control the offload thread behavior. OffloadThread can check for any pending flush reporting by its active tracks and decide to flush the HW or not. Bug: 12530661 Change-Id: Ib33f023c942f6c091b618004136b153c38a6eef6
Diffstat (limited to 'services/audioflinger/PlaybackTracks.h')
-rw-r--r--services/audioflinger/PlaybackTracks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/PlaybackTracks.h b/services/audioflinger/PlaybackTracks.h
index 4b6c74d..6600161 100644
--- a/services/audioflinger/PlaybackTracks.h
+++ b/services/audioflinger/PlaybackTracks.h
@@ -94,6 +94,8 @@ protected:
bool isReady() const;
void setPaused() { mState = PAUSED; }
void reset();
+ bool isFlushPending() const { return mFlushHwPending; }
+ void flushAck();
bool isOutputTrack() const {
return (mStreamType == AUDIO_STREAM_CNT);
@@ -155,6 +157,7 @@ private:
bool mIsInvalid; // non-resettable latch, set by invalidate()
AudioTrackServerProxy* mAudioTrackServerProxy;
bool mResumeToStopping; // track was paused in stopping state.
+ bool mFlushHwPending; // track requests for thread flush
}; // end of Track
class TimedTrack : public Track {