summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-07-25 14:41:19 -0700
committerGlenn Kasten <gkasten@google.com>2013-07-25 14:42:26 -0700
commitfc38a2e0268b5e531db2975c3a81462a3593c861 (patch)
treebc9f29a75795ea00e5ab0785ae2b11647acdc1c1 /services/audioflinger/Tracks.cpp
parent0fea74cdbc09c1259e08215e2ea90e7988d62df8 (diff)
downloadframeworks_av-fc38a2e0268b5e531db2975c3a81462a3593c861.zip
frameworks_av-fc38a2e0268b5e531db2975c3a81462a3593c861.tar.gz
frameworks_av-fc38a2e0268b5e531db2975c3a81462a3593c861.tar.bz2
CBLK_OVERRUN, not CBLK_UNDERRUN, is for record threads
Change-Id: I8948f76ef4717a423c37cd6ea7db4381636af612
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index f41cb22..d424e16 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -1659,9 +1659,6 @@ void AudioFlinger::RecordThread::RecordTrack::stop()
recordThread->mLock.lock();
bool doStop = recordThread->stop_l(this);
if (doStop) {
- // Force overrun condition to avoid false overrun callback until first data is
- // read from buffer
- android_atomic_or(CBLK_UNDERRUN, &mCblk->flags);
}
recordThread->mLock.unlock();
if (doStop) {