diff options
author | Glenn Kasten <gkasten@google.com> | 2013-07-12 12:59:20 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-07-30 09:50:48 -0700 |
commit | d054c32443a493513ab63529b0c8b1aca290278c (patch) | |
tree | fc68ba259ded1dd4960bee2938a9bcc7c599c9a3 /services/audioflinger/Tracks.cpp | |
parent | 96f60d8f04432a1ed503b3e24d5736d28c63c9a2 (diff) | |
download | frameworks_av-d054c32443a493513ab63529b0c8b1aca290278c.zip frameworks_av-d054c32443a493513ab63529b0c8b1aca290278c.tar.gz frameworks_av-d054c32443a493513ab63529b0c8b1aca290278c.tar.bz2 |
Move control block mName to createTrack() output
This is part of a series of CLs to clean up the shared memory
control block, by removing any fields that don't have to be there.
Change-Id: I6e51003a1293b6800258c31b22cff2eba42162e7
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r-- | services/audioflinger/Tracks.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index 58af204..1f75468 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -333,7 +333,6 @@ AudioFlinger::PlaybackThread::Track::Track( mServerProxy = mAudioTrackServerProxy; // to avoid leaking a track name, do not allocate one unless there is an mCblk mName = thread->getTrackName_l(channelMask, sessionId); - mCblk->mName = mName; if (mName < 0) { ALOGE("no more track names available"); return; @@ -349,7 +348,6 @@ 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); |