summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-02-24 15:13:05 -0800
committerGlenn Kasten <gkasten@google.com>2014-02-24 17:21:29 -0800
commit86f04663032ddaa25110149d709bbf896ad83b02 (patch)
tree014693a35b36f4cee533a39bfb20025e99af9887
parentdc6ac201032d0f6ad0c8149ae2f009ec38693025 (diff)
downloadframeworks_av-86f04663032ddaa25110149d709bbf896ad83b02.zip
frameworks_av-86f04663032ddaa25110149d709bbf896ad83b02.tar.gz
frameworks_av-86f04663032ddaa25110149d709bbf896ad83b02.tar.bz2
Add log at entry to set() in AudioTrack and AudioRecord
Change-Id: Ife23b88474c1d62c0cf682c1a310d951f2c0f54a
-rw-r--r--media/libmedia/AudioRecord.cpp8
-rw-r--r--media/libmedia/AudioTrack.cpp5
2 files changed, 10 insertions, 3 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp
index 700718d..b6b6d14 100644
--- a/media/libmedia/AudioRecord.cpp
+++ b/media/libmedia/AudioRecord.cpp
@@ -133,6 +133,11 @@ status_t AudioRecord::set(
transfer_type transferType,
audio_input_flags_t flags)
{
+ ALOGV("set(): inputSource %d, sampleRate %u, format %#x, channelMask %#x, frameCount %d, "
+ "notificationFrames %d, sessionId %d, transferType %d, flags %#x",
+ inputSource, sampleRate, format, channelMask, frameCountInt, notificationFrames,
+ sessionId, transferType, flags);
+
switch (transferType) {
case TRANSFER_DEFAULT:
if (cbf == NULL || threadCanCallJava) {
@@ -163,9 +168,6 @@ status_t AudioRecord::set(
}
size_t frameCount = frameCountInt;
- ALOGV("set(): sampleRate %u, channelMask %#x, frameCount %u", sampleRate, channelMask,
- frameCount);
-
AutoMutex lock(mLock);
if (mAudioRecord != 0) {
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp
index 5c62260..46025c0 100644
--- a/media/libmedia/AudioTrack.cpp
+++ b/media/libmedia/AudioTrack.cpp
@@ -195,6 +195,11 @@ status_t AudioTrack::set(
int uid,
pid_t pid)
{
+ ALOGV("set(): streamType %d, sampleRate %u, format %#x, channelMask %#x, frameCount %d, "
+ "flags #%x, notificationFrames %d, sessionId %d, transferType %d",
+ streamType, sampleRate, format, channelMask, frameCountInt, flags, notificationFrames,
+ sessionId, transferType);
+
switch (transferType) {
case TRANSFER_DEFAULT:
if (sharedBuffer != 0) {