summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
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 /services/audioflinger/AudioFlinger.cpp
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 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r--services/audioflinger/AudioFlinger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 586a916..900f74c 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -4287,6 +4287,7 @@ AudioFlinger::PlaybackThread::Track::Track(
mCblk->frameSize = audio_is_linear_pcm(format) ? mChannelCount * sizeof(int16_t) : sizeof(uint8_t);
// to avoid leaking a track name, do not allocate one unless there is an mCblk
mName = thread->getTrackName_l((audio_channel_mask_t)channelMask);
+ mCblk->mName = mName;
if (mName < 0) {
ALOGE("no more track names available");
return;
@@ -4302,6 +4303,7 @@ AudioFlinger::PlaybackThread::Track::Track(
// this means we are potentially denying other more important fast tracks from
// being created. It would be better to allocate the index dynamically.
mFastIndex = i;
+ mCblk->mName = i;
// Read the initial underruns because this field is never cleared by the fast mixer
mObservedUnderruns = thread->getFastTrackUnderruns(i);
thread->mFastTrackAvailMask &= ~(1 << i);