From 06752d20a8a75a8a638aa9be122d8e120ce3e252 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Mon, 25 Aug 2014 01:35:23 -0700 Subject: audioflinger: Fix effect can't be added for mono channel input. Don't forbid effects being added for mono channel. Change-Id: Ib080c6c9ac263239668b639a788c29154726210d --- services/audioflinger/Threads.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/audioflinger') 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::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; -- cgit v1.1