diff options
author | Glenn Kasten <gkasten@google.com> | 2012-05-31 14:35:01 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-06-13 15:12:42 -0700 |
commit | 0c9d26d187017f7fb028ab52a0fbc6395142faa4 (patch) | |
tree | 35fd2f6babef082b85058fd27a69bda048687295 /services | |
parent | b4ea1ab821d652cb080910d4081f5f1318597a90 (diff) | |
download | frameworks_av-0c9d26d187017f7fb028ab52a0fbc6395142faa4.zip frameworks_av-0c9d26d187017f7fb028ab52a0fbc6395142faa4.tar.gz frameworks_av-0c9d26d187017f7fb028ab52a0fbc6395142faa4.tar.bz2 |
Log track name on obtain/releaseBuffer warnings
This should help diagnose problems by allowing us to correlate
the logs with the dumpsys media.audio_flinger output.
Change-Id: I8c7c592b4f87d13b0f29c66ce7a2f301a0f063c9
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 2 |
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); |