File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 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;
You can’t perform that action at this time.
0 commit comments