Skip to content

Commit a482d83

Browse files
Eric LaurentAndroid (Google) Code Review
authored andcommitted
Merge "Issue 4157048: mic gain for VoIP/SIP calls." into gingerbread
2 parents a8731e1 + d7a724e commit a482d83

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

voip/jni/rtp/AudioGroup.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
#define LOG_TAG "AudioGroup"
3232
#include <cutils/atomic.h>
33+
#include <cutils/properties.h>
3334
#include <utils/Log.h>
3435
#include <utils/Errors.h>
3536
#include <utils/RefBase.h>
@@ -619,6 +620,14 @@ bool AudioGroup::setMode(int mode)
619620
if (mode < 0 || mode > LAST_MODE) {
620621
return false;
621622
}
623+
//FIXME: temporary code to overcome echo and mic gain issues on herring board.
624+
// Must be modified/removed when proper support for voice processing query and control
625+
// is included in audio framework
626+
char value[PROPERTY_VALUE_MAX];
627+
property_get("ro.product.board", value, "");
628+
if (mode == NORMAL && !strcmp(value, "herring")) {
629+
mode = ECHO_SUPPRESSION;
630+
}
622631
if (mode == ECHO_SUPPRESSION && AudioSystem::getParameters(
623632
0, String8("ec_supported")) == "ec_supported=yes") {
624633
mode = NORMAL;

0 commit comments

Comments
 (0)