Skip to content

Commit

Permalink
Merge "Issue 4157048: mic gain for VoIP/SIP calls." into gingerbread
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Laurent authored and Android (Google) Code Review committed Mar 30, 2011
2 parents a8731e1 + d7a724e commit a482d83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions voip/jni/rtp/AudioGroup.cpp
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a482d83

Please sign in to comment.