summaryrefslogtreecommitdiffstats
path: root/media/libeffects/preprocessing/PreProcessing.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-09-07 14:53:06 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-07 14:53:07 -0700
commit85396642425b94ec33aa26f27e109353e3516ec4 (patch)
treecca1653ca3c4c7ba53d3aaa724369504dcb71e1e /media/libeffects/preprocessing/PreProcessing.cpp
parent1adbb8c35b721e1a29f8e2e2a5341ae0b1f067ba (diff)
parentf1c04f952916cf70407051c9f824ab84fb2b6e09 (diff)
downloadframeworks_av-85396642425b94ec33aa26f27e109353e3516ec4.zip
frameworks_av-85396642425b94ec33aa26f27e109353e3516ec4.tar.gz
frameworks_av-85396642425b94ec33aa26f27e109353e3516ec4.tar.bz2
Merge "audioflinger: changes for new audio devices enums" into jb-mr1-dev
Diffstat (limited to 'media/libeffects/preprocessing/PreProcessing.cpp')
-rwxr-xr-xmedia/libeffects/preprocessing/PreProcessing.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libeffects/preprocessing/PreProcessing.cpp b/media/libeffects/preprocessing/PreProcessing.cpp
index 5709837..597866a 100755
--- a/media/libeffects/preprocessing/PreProcessing.cpp
+++ b/media/libeffects/preprocessing/PreProcessing.cpp
@@ -517,6 +517,10 @@ int AecSetDevice(preproc_effect_t *effect, uint32_t device)
webrtc::EchoControlMobile *aec = static_cast<webrtc::EchoControlMobile *>(effect->engine);
webrtc::EchoControlMobile::RoutingMode mode = webrtc::EchoControlMobile::kQuietEarpieceOrHeadset;
+ if (audio_is_input_device(device)) {
+ return 0;
+ }
+
switch(device) {
case AUDIO_DEVICE_OUT_EARPIECE:
mode = webrtc::EchoControlMobile::kEarpiece;