summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Effects.cpp
diff options
context:
space:
mode:
authorvivek mehta <mvivek@codeaurora.org>2015-09-18 10:36:39 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:25:06 -0600
commit5b0ded9bf189d8e6a22ab1b22316302b1499bb53 (patch)
tree251eabd3ab48ff8e0d36afd8b74fa65f0abb6a1e /services/audioflinger/Effects.cpp
parent957c762710b526579a4354fbd0b83b4c26274e49 (diff)
downloadframeworks_av-5b0ded9bf189d8e6a22ab1b22316302b1499bb53.zip
frameworks_av-5b0ded9bf189d8e6a22ab1b22316302b1499bb53.tar.gz
frameworks_av-5b0ded9bf189d8e6a22ab1b22316302b1499bb53.tar.bz2
Direct_PCM: add support for effects
- add support for effects on direct pcm output Change-Id: I2fbac63c623bf51a03e5e91828369739d33329f3
Diffstat (limited to 'services/audioflinger/Effects.cpp')
-rw-r--r--services/audioflinger/Effects.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/audioflinger/Effects.cpp b/services/audioflinger/Effects.cpp
index 3d11a20..54ca6c3 100644
--- a/services/audioflinger/Effects.cpp
+++ b/services/audioflinger/Effects.cpp
@@ -1113,7 +1113,8 @@ status_t AudioFlinger::EffectHandle::enable()
mEnabled = false;
} else {
if (thread != 0) {
- if (thread->type() == ThreadBase::OFFLOAD) {
+ if ((thread->type() == ThreadBase::OFFLOAD) ||
+ (thread->type() == ThreadBase::DIRECT && thread->mIsDirectPcm)) {
PlaybackThread *t = (PlaybackThread *)thread.get();
Mutex::Autolock _l(t->mLock);
t->broadcast_l();