summaryrefslogtreecommitdiffstats
path: root/media/libmedia
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-06-14 08:43:56 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-14 08:43:56 -0700
commit48a0bfa6f731386f2794ff36d6677d56e98fc6ea (patch)
tree36deb7b4e31a25a8a4b313de8ffdecd1d8ae9aaa /media/libmedia
parentcc0df657cdc8316c2b816c562f269be1706f00ea (diff)
parent49dd5cf3469cd755321f8ec10013ad4fcfaf723d (diff)
downloadframeworks_av-48a0bfa6f731386f2794ff36d6677d56e98fc6ea.zip
frameworks_av-48a0bfa6f731386f2794ff36d6677d56e98fc6ea.tar.gz
frameworks_av-48a0bfa6f731386f2794ff36d6677d56e98fc6ea.tar.bz2
am 49dd5cf3: Merge "Log track name on obtain/releaseBuffer warnings" into jb-dev
* commit '49dd5cf3469cd755321f8ec10013ad4fcfaf723d': Log track name on obtain/releaseBuffer warnings
Diffstat (limited to 'media/libmedia')
-rw-r--r--media/libmedia/AudioTrack.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp
index e234532..7df9b75 100644
--- a/media/libmedia/AudioTrack.cpp
+++ b/media/libmedia/AudioTrack.cpp
@@ -987,8 +987,8 @@ status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount)
// timing out when a loop has been set and we have already written upto loop end
// is a normal condition: no need to wake AudioFlinger up.
if (cblk->user < cblk->loopEnd) {
- ALOGW( "obtainBuffer timed out (is the CPU pegged?) %p "
- "user=%08x, server=%08x", this, cblk->user, cblk->server);
+ ALOGW( "obtainBuffer timed out (is the CPU pegged?) %p name=%#x"
+ "user=%08x, server=%08x", this, cblk->mName, cblk->user, cblk->server);
//unlock cblk mutex before calling mAudioTrack->start() (see issue #1617140)
cblk->lock.unlock();
result = mAudioTrack->start();
@@ -1054,7 +1054,7 @@ void AudioTrack::releaseBuffer(Buffer* audioBuffer)
// restart track if it was disabled by audioflinger due to previous underrun
if (mActive && (mCblk->flags & CBLK_DISABLED_MSK)) {
android_atomic_and(~CBLK_DISABLED_ON, &mCblk->flags);
- ALOGW("releaseBuffer() track %p disabled, restarting", this);
+ ALOGW("releaseBuffer() track %p name=%#x disabled, restarting", this, mCblk->mName);
mAudioTrack->start();
}
}