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

Commit ba4defea authored by Jaideep Sharma's avatar Jaideep Sharma Committed by Shunkai Yao
Browse files

av: change return value if effect is not processing

Return -ENODATA in case if effect is not processing
so AudioFlinger can stop calling process on the effect.
Otherwise, AudioFlinger will retry for a disable count,
causing no sound for that period.

Bug: 301214647
Test: Enable AIDL and test with effects

Change-Id: Ie987e6384b87e720b3fd569e242f6b8c3ae11e31
Merged-In: Ie987e6384b87e720b3fd569e242f6b8c3ae11e31
parent 0e4ca1cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ status_t EffectHalAidl::process() {
              mConversion->isBypassing()
                      ? "bypassing"
                      : aidl::android::hardware::audio::effect::toString(state).c_str());
        return OK;
        return -ENODATA;
    }

    auto statusQ = mConversion->getStatusMQ();