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

Commit 37904127 authored by David Li's avatar David Li Committed by Android (Google) Code Review
Browse files

Merge "Effect AIDL: send STOP command before close" into main

parents 0ffef2c3 a6913430
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());
}