summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-02 15:53:01 -0800
committerGlenn Kasten <gkasten@google.com>2015-03-06 09:35:19 -0800
commit17c9c998afed5ed9df7495eeed5822f3ed53ebec (patch)
tree9b146046584a7093410ecb23b1265d770383c376 /services/audioflinger/Threads.cpp
parent44182c206f7c5584ef2cf504da6be98fab665dbf (diff)
downloadframeworks_av-17c9c998afed5ed9df7495eeed5822f3ed53ebec.zip
frameworks_av-17c9c998afed5ed9df7495eeed5822f3ed53ebec.tar.gz
frameworks_av-17c9c998afed5ed9df7495eeed5822f3ed53ebec.tar.bz2
Initial implementation of fast capture dump
Change-Id: I898d903e539f760ef7caa80f41ca21c223f67264
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 92bd295..b7807ee 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -6163,6 +6163,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)