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

Commit db81cd89 authored by Shunkai Yao's avatar Shunkai Yao
Browse files

EffectBundle: update lvm control parameters with AIDL parameters

Flag: EXEMPT bugfix
Bug: 365703305
Test: reproduce steps in the bug
Test: atest audioeffect_analysis CtsMediaAudioTestCases
Change-Id: I0c07c9c4e1653649c5328d411dfb0043170a49a3
Merged-In: I0c07c9c4e1653649c5328d411dfb0043170a49a3
parent 46aff260
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -90,6 +90,12 @@ void BundleContext::deInit() {
    }
}

RetCode BundleContext::setCommon(const Parameter::Common& common) {
    RetCode ret = EffectContext::setCommon(common);
    RETURN_VALUE_IF(ret != RetCode::SUCCESS, ret, " setCommonFailed");
    return init();
}

RetCode BundleContext::enable() {
    if (mEnabled) return RetCode::ERROR_ILLEGAL_PARAMETER;
    // Bass boost or Virtualizer can be temporarily disabled if playing over device speaker due to
+2 −0
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ class BundleContext final : public EffectContext {
    void deInit();
    lvm::BundleEffectType getBundleType() const { return mType; }

    RetCode setCommon(const Parameter::Common& common) override;

    RetCode enable() override;
    RetCode enableOperatingMode();
    RetCode disable() override;