diff options
author | Andy Hung <hunga@google.com> | 2015-07-22 23:27:24 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2015-07-22 23:31:54 -0700 |
commit | a97630bda8815958587ca31adb2d37090022af25 (patch) | |
tree | edff2365d23d227a22248f30dd8acf217801fa8d /services | |
parent | 17d0efd17fbb2573adcde8dcbe77726f622817da (diff) | |
download | frameworks_av-a97630bda8815958587ca31adb2d37090022af25.zip frameworks_av-a97630bda8815958587ca31adb2d37090022af25.tar.gz frameworks_av-a97630bda8815958587ca31adb2d37090022af25.tar.bz2 |
Fix record memory buffer allocation for legacy upmix/downmix
Bug: 22173057
Change-Id: I8f5056ff5a1252c71a3d3b354440551bcd9fd466
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/Threads.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp index c360051..43dd53c 100644 --- a/services/audioflinger/Threads.cpp +++ b/services/audioflinger/Threads.cpp @@ -6651,7 +6651,7 @@ status_t AudioFlinger::RecordThread::RecordBufferConverter::updateParameters( if (mResampler != NULL) { mBufFrameSize = max(mSrcChannelCount, FCC_2) * audio_bytes_per_sample(AUDIO_FORMAT_PCM_FLOAT); - } else if ((mIsLegacyUpmix || mIsLegacyDownmix) && mDstFormat != AUDIO_FORMAT_PCM_FLOAT) { + } else if (mIsLegacyUpmix || mIsLegacyDownmix) { // legacy modes always float mBufFrameSize = mDstChannelCount * audio_bytes_per_sample(AUDIO_FORMAT_PCM_FLOAT); } else if (mSrcChannelMask != mDstChannelMask && mDstFormat != mSrcFormat) { mBufFrameSize = mDstChannelCount * audio_bytes_per_sample(mSrcFormat); |