summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-03-12 18:13:59 -0700
committerGlenn Kasten <gkasten@google.com>2012-03-12 18:13:59 -0700
commit6cb5e64f48053b4a896520584091760fe6292126 (patch)
tree0b868bb3e1d7a7a4f15ac4f932082749130d2d47 /services/audioflinger
parentbdc5afeee57a943adac3896297fab74b96b307c1 (diff)
downloadframeworks_base-6cb5e64f48053b4a896520584091760fe6292126.zip
frameworks_base-6cb5e64f48053b4a896520584091760fe6292126.tar.gz
frameworks_base-6cb5e64f48053b4a896520584091760fe6292126.tar.bz2
Fix bug where mMixerStatus was set to IDLE
Change-Id: I55df1738fb7ba17ba6caeea6a17557526eac17a7
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/AudioFlinger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index d537a20..81b9464 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1463,7 +1463,7 @@ AudioFlinger::PlaybackThread::PlaybackThread(const sp<AudioFlinger>& audioFlinge
// but it would be safer to explicitly pass initial masterVolume as parameter
mMasterVolume(audioFlinger->masterVolumeSW_l()),
mLastWriteTime(0), mNumWrites(0), mNumDelayedWrites(0), mInWrite(false),
- // mMixerStatus
+ mMixerStatus(MIXER_IDLE),
mPrevMixerStatus(MIXER_IDLE),
standbyDelay(AudioFlinger::mStandbyTimeInNsecs)
{
@@ -2031,7 +2031,6 @@ if (mType == MIXER) {
processConfigEvents();
- mMixerStatus = MIXER_IDLE;
{ // scope for mLock
Mutex::Autolock _l(mLock);