summaryrefslogtreecommitdiffstats
path: root/voip
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-08-29 14:24:31 -0700
committerEric Laurent <elaurent@google.com>2011-09-02 12:10:45 -0700
commit74e0a990ae3196b8195db2a399c22516c7dd0823 (patch)
treec9028258ca3f336c6b669ab547eed2ef854247f3 /voip
parent5afd2bd02ae44d5a38f9e560047723ddab176405 (diff)
downloadframeworks_base-74e0a990ae3196b8195db2a399c22516c7dd0823.zip
frameworks_base-74e0a990ae3196b8195db2a399c22516c7dd0823.tar.gz
frameworks_base-74e0a990ae3196b8195db2a399c22516c7dd0823.tar.bz2
VoIP JNI: Force AEC on for tuna board
Force AEC on for tuna board because of the strong feedback of Rx audio path, even when playing over earpiece or headset. Change-Id: I9c14257d56103ba82d6cdb0b7d5a3f315638136e
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) {