From 0fea74cdbc09c1259e08215e2ea90e7988d62df8 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Thu, 25 Jul 2013 14:34:57 -0700 Subject: Remove obsolete TrackBase::reset() Change-Id: I38100b7e28a12d7af8cb40ae3f4d9cb4a0ebe701 --- services/audioflinger/TrackBase.h | 1 - services/audioflinger/Tracks.cpp | 7 ------- 2 files changed, 8 deletions(-) (limited to 'services/audioflinger') diff --git a/services/audioflinger/TrackBase.h b/services/audioflinger/TrackBase.h index 55d96fa..f0c32b2 100644 --- a/services/audioflinger/TrackBase.h +++ b/services/audioflinger/TrackBase.h @@ -105,7 +105,6 @@ protected: } bool step(); // mStepCount is an implicit input - void reset(); bool isOut() const { return mIsOut; } // true for Track and TimedTrack, false for RecordTrack, diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index c45daae..f41cb22 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -202,11 +202,6 @@ void AudioFlinger::ThreadBase::TrackBase::releaseBuffer(AudioBufferProvider::Buf mServerProxy->releaseBuffer(&buf); } -void AudioFlinger::ThreadBase::TrackBase::reset() { - ALOGV("TrackBase::reset"); - // FIXME still needed? -} - status_t AudioFlinger::ThreadBase::TrackBase::setSyncEvent(const sp& event) { mSyncEvents.add(event); @@ -676,7 +671,6 @@ void AudioFlinger::PlaybackThread::Track::reset() // Do not reset twice to avoid discarding data written just after a flush and before // the audioflinger thread detects the track is stopped. if (!mResetDone) { - TrackBase::reset(); // Force underrun condition to avoid false underrun callback until first data is // written to buffer android_atomic_and(~CBLK_FORCEREADY, &mCblk->flags); @@ -1665,7 +1659,6 @@ void AudioFlinger::RecordThread::RecordTrack::stop() recordThread->mLock.lock(); bool doStop = recordThread->stop_l(this); if (doStop) { - TrackBase::reset(); // Force overrun condition to avoid false overrun callback until first data is // read from buffer android_atomic_or(CBLK_UNDERRUN, &mCblk->flags); -- cgit v1.1