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

Commit fa6067f8 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "VoIP JNI: Force AEC on for tuna board"

parents 2cc2d984 74e0a990
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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) {