summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-03-13 15:08:33 -0700
committerGlenn Kasten <gkasten@google.com>2014-03-14 14:49:36 -0700
commit05997e21af6c4517f375def6563af4b9ebe95f39 (patch)
tree6a0892e14e34751cd10e11f6f73e92401f540505 /services/audioflinger/Threads.cpp
parent0e0e846f3d86906ff990025981e514d6bcf44d8e (diff)
downloadframeworks_av-05997e21af6c4517f375def6563af4b9ebe95f39.zip
frameworks_av-05997e21af6c4517f375def6563af4b9ebe95f39.tar.gz
frameworks_av-05997e21af6c4517f375def6563af4b9ebe95f39.tar.bz2
Whitespace and comments
Change-Id: I99752cca74a459c4746ea4718acb0115439e50bd
Diffstat (limited to 'services/audioflinger/Threads.cpp')
-rw-r--r--services/audioflinger/Threads.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 1c46c27..1b0a601 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -1416,7 +1416,6 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTrac
// track must be cleared from the caller as the caller has the AF lock
goto Exit;
}
-
mTracks.add(track);
sp<EffectChain> chain = getEffectChain_l(sessionId);
@@ -5053,6 +5052,7 @@ void AudioFlinger::RecordThread::inputStandBy()
mInput->stream->common.standby(&mInput->stream->common);
}
+// RecordThread::createRecordTrack_l() must be called with AudioFlinger::mLock held
sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRecordTrack_l(
const sp<AudioFlinger::Client>& client,
uint32_t sampleRate,
@@ -5156,6 +5156,7 @@ sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRe
sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp);
}
}
+
lStatus = NO_ERROR;
Exit: