summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-07-26 23:24:50 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-07-26 23:24:50 +0000
commit65d30dd9ee498f7b3bfc033735458a6ff399c207 (patch)
treee5fa59313d1c9ed9e61622217b92383fccac93eb /services
parent422801c5e9b795105f28e639c4bed5ee3f4e56f3 (diff)
parent0fea74cdbc09c1259e08215e2ea90e7988d62df8 (diff)
downloadframeworks_av-65d30dd9ee498f7b3bfc033735458a6ff399c207.zip
frameworks_av-65d30dd9ee498f7b3bfc033735458a6ff399c207.tar.gz
frameworks_av-65d30dd9ee498f7b3bfc033735458a6ff399c207.tar.bz2
Merge "Remove obsolete TrackBase::reset()"
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/TrackBase.h1
-rw-r--r--services/audioflinger/Tracks.cpp7
2 files changed, 0 insertions, 8 deletions
diff --git a/services/audioflinger/TrackBase.h b/services/audioflinger/TrackBase.h
index e69d1d7..a243563 100644
--- a/services/audioflinger/TrackBase.h
+++ b/services/audioflinger/TrackBase.h
@@ -109,7 +109,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 e674a50..51f043f 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -203,11 +203,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<SyncEvent>& event)
{
mSyncEvents.add(event);
@@ -703,7 +698,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);
@@ -1714,7 +1708,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);