diff options
author | Eric Laurent <elaurent@google.com> | 2011-04-04 12:25:37 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-04-04 12:25:37 -0700 |
commit | b7a76e84fde7fe534d46aaaa71e3224798354009 (patch) | |
tree | 537fe7d6705a519eeeece994c7df3004414fde58 /voip | |
parent | 179122ad56f12bd802fd29fe0b6606dd23ec5ba9 (diff) | |
parent | a482d83ccf35ccd6cc29a9e1ace3d77b5f28d013 (diff) | |
download | frameworks_base-b7a76e84fde7fe534d46aaaa71e3224798354009.zip frameworks_base-b7a76e84fde7fe534d46aaaa71e3224798354009.tar.gz frameworks_base-b7a76e84fde7fe534d46aaaa71e3224798354009.tar.bz2 |
am a482d83c: Merge "Issue 4157048: mic gain for VoIP/SIP calls." into gingerbread
* commit 'a482d83ccf35ccd6cc29a9e1ace3d77b5f28d013':
Issue 4157048: mic gain for VoIP/SIP calls.
Diffstat (limited to 'voip')
-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 2cbd023..ae071ce 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; |