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

Commit 3508c990 authored by Srikanth Katta's avatar Srikanth Katta Committed by Arne Coucheron
Browse files

audio: Initialize LPA variables in audioflinger

 - During initialization of audioflinger, a number of
variables related to LPA are not set to default values.
This causes an undesired side effect that the first
effect in the effect chain is considered to be LPA
enabled. Since LPA does not execute effect processing,
switching xLoud on/off does nothing
 - Fixed by initializing member variables in audioflinger.

Change-Id: Ide06fb0e6804558388e6610cc7686f168591e4a5
parent 637ce58e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -210,6 +210,11 @@ void AudioFlinger::onFirstRef()
    Mutex::Autolock _l(mLock);

    /* TODO: move all this work into an Init() function */
#ifdef QCOM_HARDWARE
    mLPASessionId = -2; // -2 is invalid session ID
    mIsEffectConfigChanged = false;
    mLPAEffectChain = NULL;
#endif
    char val_str[PROPERTY_VALUE_MAX] = { 0 };
    if (property_get("ro.audio.flinger_standbytime_ms", val_str, NULL) >= 0) {
        uint32_t int_val;