diff options
| author | Eric Laurent <elaurent@google.com> | 2012-09-07 14:53:06 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-07 14:53:07 -0700 |
| commit | 85396642425b94ec33aa26f27e109353e3516ec4 (patch) | |
| tree | cca1653ca3c4c7ba53d3aaa724369504dcb71e1e /media/libeffects/preprocessing/PreProcessing.cpp | |
| parent | 1adbb8c35b721e1a29f8e2e2a5341ae0b1f067ba (diff) | |
| parent | f1c04f952916cf70407051c9f824ab84fb2b6e09 (diff) | |
| download | frameworks_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-x | media/libeffects/preprocessing/PreProcessing.cpp | 4 |
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; |
