summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-08-13 11:41:09 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-13 11:41:09 -0700
commit2ef6e196198b3c2961e7fbf4637a70d6b38085ca (patch)
tree373463abd597604e9fca9d0ce7e66725b486ac8a
parentbfb3fec3341889226c66d72ab926c7de9553a125 (diff)
parent0319e9e31cb7b0033a3026b0305b78e2d48c6ec8 (diff)
downloadframeworks_av-2ef6e196198b3c2961e7fbf4637a70d6b38085ca.zip
frameworks_av-2ef6e196198b3c2961e7fbf4637a70d6b38085ca.tar.gz
frameworks_av-2ef6e196198b3c2961e7fbf4637a70d6b38085ca.tar.bz2
am 0319e9e3: am 0dbb3560: Simplify AudioFlinger::PlaybackThread::isValidSyncEvent()
* commit '0319e9e31cb7b0033a3026b0305b78e2d48c6ec8': Simplify AudioFlinger::PlaybackThread::isValidSyncEvent()
-rw-r--r--services/audioflinger/AudioFlinger.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 8bbfa7a..a312e48 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -2189,13 +2189,7 @@ status_t AudioFlinger::PlaybackThread::setSyncEvent(const sp<SyncEvent>& event)
bool AudioFlinger::PlaybackThread::isValidSyncEvent(const sp<SyncEvent>& event)
{
- switch (event->type()) {
- case AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE:
- return true;
- default:
- break;
- }
- return false;
+ return event->type() == AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE;
}
void AudioFlinger::PlaybackThread::threadLoop_removeTracks(const Vector< sp<Track> >& tracksToRemove)