Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74e0a990 authored by Eric Laurent's avatar Eric Laurent
Browse files

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
parent 5afd2bd0
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -628,12 +628,13 @@ bool AudioGroup::setMode(int mode)
    if (mode < 0 || mode > LAST_MODE) {
    if (mode < 0 || mode > LAST_MODE) {
        return false;
        return false;
    }
    }
    //FIXME: temporary code to overcome echo and mic gain issues on herring board.
    // FIXME: temporary code to overcome echo and mic gain issues on herring and tuna boards.
    // Must be modified/removed when proper support for voice processing query and control
    // Must be modified/removed when the root cause of the issue is fixed in the hardware or
    // is included in audio framework
    // driver
    char value[PROPERTY_VALUE_MAX];
    char value[PROPERTY_VALUE_MAX];
    property_get("ro.product.board", value, "");
    property_get("ro.product.board", value, "");
    if (mode == NORMAL && !strcmp(value, "herring")) {
    if (mode == NORMAL &&
            (!strcmp(value, "herring") || !strcmp(value, "tuna"))) {
        mode = ECHO_SUPPRESSION;
        mode = ECHO_SUPPRESSION;
    }
    }
    if (mMode == mode) {
    if (mMode == mode) {