diff options
author | Eric Laurent <elaurent@google.com> | 2014-11-04 03:16:11 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-04 03:16:11 +0000 |
commit | d202ac37fc1f5f31e180af55cebd22810a80251b (patch) | |
tree | a1e6298fa1a54fab894bdac57a5eccc7e9e068af /services/audioflinger/AudioFlinger.cpp | |
parent | bec72a5c63bcff1a69ea05000b772a40ca291b43 (diff) | |
parent | b7092547d94a25d5a012fe983b48460ca38be7c8 (diff) | |
download | frameworks_av-d202ac37fc1f5f31e180af55cebd22810a80251b.zip frameworks_av-d202ac37fc1f5f31e180af55cebd22810a80251b.tar.gz frameworks_av-d202ac37fc1f5f31e180af55cebd22810a80251b.tar.bz2 |
am b7092547: Merge "remove some restrictions on effect output channels" into lmp-mr1-dev automerge: ed1e55c
* commit 'b7092547d94a25d5a012fe983b48460ca38be7c8':
remove some restrictions on effect output channels
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 7b65de7..ea9d7d3 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -2633,7 +2633,8 @@ status_t AudioFlinger::moveEffectChain_l(int sessionId, // Check whether the destination thread has a channel count of FCC_2, which is // currently required for (most) effects. Prevent moving the effect chain here rather // than disabling the addEffect_l() call in dstThread below. - if (dstThread->mChannelCount != FCC_2) { + if ((dstThread->type() == ThreadBase::MIXER || dstThread->type() == ThreadBase::DUPLICATING) && + dstThread->mChannelCount != FCC_2) { ALOGW("moveEffectChain_l() effect chain failed because" " destination thread %p channel count(%u) != %u", dstThread, dstThread->mChannelCount, FCC_2); |