diff options
author | Eric Laurent <elaurent@google.com> | 2011-03-30 14:55:49 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-03-30 14:55:49 -0700 |
commit | a482d83ccf35ccd6cc29a9e1ace3d77b5f28d013 (patch) | |
tree | 2f2b3c30edaa1b50f09e7af496c7bbdc5a5e1ada | |
parent | a8731e1e922512e5c22485e48059f33b61ab93ea (diff) | |
parent | d7a724e6d89420408200c20937baa3b2bd902742 (diff) | |
download | base-a482d83ccf35ccd6cc29a9e1ace3d77b5f28d013.tar.gz |
Merge "Issue 4157048: mic gain for VoIP/SIP calls." into gingerbread
-rw-r--r-- | voip/jni/rtp/AudioGroup.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/voip/jni/rtp/AudioGroup.cpp b/voip/jni/rtp/AudioGroup.cpp index 2cbd023de9d8..ae071ce05789 100644 --- a/voip/jni/rtp/AudioGroup.cpp +++ b/voip/jni/rtp/AudioGroup.cpp @@ -30,6 +30,7 @@ #define LOG_TAG "AudioGroup" #include <cutils/atomic.h> +#include <cutils/properties.h> #include <utils/Log.h> #include <utils/Errors.h> #include <utils/RefBase.h> @@ -619,6 +620,14 @@ bool AudioGroup::setMode(int mode) if (mode < 0 || mode > LAST_MODE) { return false; } + //FIXME: temporary code to overcome echo and mic gain issues on herring board. + // Must be modified/removed when proper support for voice processing query and control + // is included in audio framework + char value[PROPERTY_VALUE_MAX]; + property_get("ro.product.board", value, ""); + if (mode == NORMAL && !strcmp(value, "herring")) { + mode = ECHO_SUPPRESSION; + } if (mode == ECHO_SUPPRESSION && AudioSystem::getParameters( 0, String8("ec_supported")) == "ec_supported=yes") { mode = NORMAL; |