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

Commit a6913430 authored by David Li's avatar David Li
Browse files

Effect AIDL: send STOP command before close

Bug: 303004264
Test: manual test
Change-Id: Ie29d84cacb08560b760a4062a91a5e97b4e317b0
parent a8b7ec8e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@
#include "effectsAidlConversion/AidlConversionVisualizer.h"

using ::aidl::android::aidl_utils::statusTFromBinderStatus;
using ::aidl::android::hardware::audio::effect::CommandId;
using ::aidl::android::hardware::audio::effect::Descriptor;
using ::aidl::android::hardware::audio::effect::IEffect;
using ::aidl::android::hardware::audio::effect::IFactory;
@@ -285,6 +286,7 @@ status_t EffectHalAidl::getDescriptor(effect_descriptor_t* pDescriptor) {

status_t EffectHalAidl::close() {
    TIME_CHECK();
    mEffect->command(CommandId::STOP);
    return statusTFromBinderStatus(mEffect->close());
}