summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorManish Kumar <manishku@codeaurora.org>2014-08-25 01:35:23 -0700
committerSteve Kondik <steve@cyngn.com>2015-12-07 18:45:16 -0800
commit06752d20a8a75a8a638aa9be122d8e120ce3e252 (patch)
tree2dd88890a8567957defb0bea5e31de76000b05ed /services/audioflinger
parent5f72c89a07f3a8881a4b9536221a5f9883d8a3b6 (diff)
downloadframeworks_av-06752d20a8a75a8a638aa9be122d8e120ce3e252.zip
frameworks_av-06752d20a8a75a8a638aa9be122d8e120ce3e252.tar.gz
frameworks_av-06752d20a8a75a8a638aa9be122d8e120ce3e252.tar.bz2
audioflinger: Fix effect can't be added for mono channel input.
Don't forbid effects being added for mono channel. Change-Id: Ib080c6c9ac263239668b639a788c29154726210d
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/Threads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 4cb88c2..680ff13 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -1165,7 +1165,7 @@ sp<AudioFlinger::EffectHandle> AudioFlinger::ThreadBase::createEffect_l(
// Reject any effect on mixer or duplicating multichannel sinks.
// TODO: fix both format and multichannel issues with effects.
- if ((mType == MIXER || mType == DUPLICATING) && mChannelCount != FCC_2) {
+ if ((mType == MIXER || mType == DUPLICATING) && mChannelCount > FCC_2) {
ALOGW("createEffect_l() Cannot add effect %s for multichannel(%d) %s threads",
desc->name, mChannelCount, mType == MIXER ? "MIXER" : "DUPLICATING");
lStatus = BAD_VALUE;