diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-25 15:48:25 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-02-25 15:48:25 +0000 |
commit | 172abfe2cc30104282f8e65b82e9c9758adc83da (patch) | |
tree | e9d99ac10f51c6427aea253ef624772ec02d9827 | |
parent | 68d074fe4538e0f1bd647c3f3aa932ea7dca332a (diff) | |
parent | 86f04663032ddaa25110149d709bbf896ad83b02 (diff) | |
download | frameworks_av-172abfe2cc30104282f8e65b82e9c9758adc83da.zip frameworks_av-172abfe2cc30104282f8e65b82e9c9758adc83da.tar.gz frameworks_av-172abfe2cc30104282f8e65b82e9c9758adc83da.tar.bz2 |
Merge "Add log at entry to set() in AudioTrack and AudioRecord"
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 8 | ||||
-rw-r--r-- | media/libmedia/AudioTrack.cpp | 5 |
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) { |