summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-18 12:57:28 -0700
committerGlenn Kasten <gkasten@google.com>2015-03-23 14:50:42 -0700
commitb7fbf7ecc6b034243ec64f79f3113675b5e3c941 (patch)
treec90e057b2756c80dd371adc82e5431bb6e044236 /services
parent4c36d6f48f4eecacc148317f775f65961a4f03d2 (diff)
downloadframeworks_av-b7fbf7ecc6b034243ec64f79f3113675b5e3c941.zip
frameworks_av-b7fbf7ecc6b034243ec64f79f3113675b5e3c941.tar.gz
frameworks_av-b7fbf7ecc6b034243ec64f79f3113675b5e3c941.tar.bz2
AudioRecord TRANSFER_OBTAIN can be used with FAST flag
Change-Id: I001ba1a88150dddf79d99baf5927f31799745eef
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/Threads.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index d0b825c..48bb21f 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -5867,8 +5867,9 @@ sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRe
// client expresses a preference for FAST, but we get the final say
if (*flags & IAudioFlinger::TRACK_FAST) {
if (
- // use case: callback handler
- (tid != -1) &&
+ // we formerly checked for a callback handler (non-0 tid),
+ // but that is no longer required for TRANSFER_OBTAIN mode
+ //
// frame count is not specified, or is exactly the pipe depth
((frameCount == 0) || (frameCount == mPipeFramesP2)) &&
// PCM data