summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-19 14:49:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-19 14:49:47 +0000
commit5a23aa949188fafe1d8d35966ff5a73974294dfd (patch)
tree51100d1057123aa3d7b6fd40a54c2b5611a82172 /services/audioflinger/Threads.cpp
parentd58b2ac7244a964caa3f4e386b8280ae2f5d2125 (diff)
parent17c9c998afed5ed9df7495eeed5822f3ed53ebec (diff)
downloadframeworks_av-5a23aa949188fafe1d8d35966ff5a73974294dfd.zip
frameworks_av-5a23aa949188fafe1d8d35966ff5a73974294dfd.tar.gz
frameworks_av-5a23aa949188fafe1d8d35966ff5a73974294dfd.tar.bz2
Merge "Initial implementation of fast capture dump"
Diffstat (limited to 'services/audioflinger/Threads.cpp')
-rw-r--r--services/audioflinger/Threads.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index c1da6bc..9881764 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -6164,6 +6164,10 @@ void AudioFlinger::RecordThread::dumpInternals(int fd, const Vector<String16>& a
}
dprintf(fd, " Fast capture thread: %s\n", hasFastCapture() ? "yes" : "no");
dprintf(fd, " Fast track available: %s\n", mFastTrackAvail ? "yes" : "no");
+
+ // Make a non-atomic copy of fast capture dump state so it won't change underneath us
+ const FastCaptureDumpState copy(mFastCaptureDumpState);
+ copy.dump(fd);
}
void AudioFlinger::RecordThread::dumpTracks(int fd, const Vector<String16>& args __unused)