diff options
author | Eric Laurent <elaurent@google.com> | 2014-09-30 01:11:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-30 01:11:20 +0000 |
commit | f71224ce266abb39f83ecba87783c2347631654a (patch) | |
tree | 2ab4c81c96918d94c5ff0acc66a68606c08b47de /services/audioflinger/Tracks.cpp | |
parent | c8c05d6a5821dd56209e160066314a03d2f2ca06 (diff) | |
parent | e659ef420dae0caae84ab78f9df8952acb9ad3a0 (diff) | |
download | frameworks_av-f71224ce266abb39f83ecba87783c2347631654a.zip frameworks_av-f71224ce266abb39f83ecba87783c2347631654a.tar.gz frameworks_av-f71224ce266abb39f83ecba87783c2347631654a.tar.bz2 |
Merge "audioflinger: forward flush to direct output streams" into lmp-dev
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r-- | services/audioflinger/Tracks.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index c0a75b9..75190f3 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -824,6 +824,10 @@ void AudioFlinger::PlaybackThread::Track::flush() // remove from active track list, reset(), and trigger presentation complete if (playbackThread->mActiveTracks.indexOf(this) < 0) { reset(); + if (thread->type() == ThreadBase::DIRECT) { + DirectOutputThread *t = (DirectOutputThread *)playbackThread; + t->flushHw_l(); + } } } // Prevent flush being lost if the track is flushed and then resumed |