summaryrefslogtreecommitdiffstats
path: root/voip
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-09-06 14:53:14 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-06 14:53:14 -0700
commitfa6067f87c7405c987d5879554d529e7413910c0 (patch)
treeedd13841e70631c0d1f2aea7703044d311c4e669 /voip
parent2cc2d984b13db06b1c349d13431a3ab2c11fcbc3 (diff)
parent74e0a990ae3196b8195db2a399c22516c7dd0823 (diff)
downloadframeworks_base-fa6067f87c7405c987d5879554d529e7413910c0.zip
frameworks_base-fa6067f87c7405c987d5879554d529e7413910c0.tar.gz
frameworks_base-fa6067f87c7405c987d5879554d529e7413910c0.tar.bz2
Merge "VoIP JNI: Force AEC on for tuna board"
Diffstat (limited to 'voip')
-rw-r--r--voip/jni/rtp/AudioGroup.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/voip/jni/rtp/AudioGroup.cpp b/voip/jni/rtp/AudioGroup.cpp
index 529b425..5f07bb5 100644
--- a/voip/jni/rtp/AudioGroup.cpp
+++ b/voip/jni/rtp/AudioGroup.cpp
@@ -628,12 +628,13 @@ 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
+ // FIXME: temporary code to overcome echo and mic gain issues on herring and tuna boards.
+ // Must be modified/removed when the root cause of the issue is fixed in the hardware or
+ // driver
char value[PROPERTY_VALUE_MAX];
property_get("ro.product.board", value, "");
- if (mode == NORMAL && !strcmp(value, "herring")) {
+ if (mode == NORMAL &&
+ (!strcmp(value, "herring") || !strcmp(value, "tuna"))) {
mode = ECHO_SUPPRESSION;
}
if (mMode == mode) {