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

Commit bbe0cfb2 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by android-build-merger
Browse files

Merge \\"Fix non-offloadable effect creation on offload threads\\" into nyc-mr1-dev am: b28d6117

am: 8611d513

Change-Id: I038d377d8489b95f6eb119f27fd968e97bd83b14
parents 47466f01 8611d513
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1341,12 +1341,10 @@ status_t AudioFlinger::PlaybackThread::checkEffectCompatibility_l(
        }
    } break;
    case OFFLOAD:
        // only offloadable effects on offload thread
        if ((desc->flags & EFFECT_FLAG_OFFLOAD_MASK) != EFFECT_FLAG_OFFLOAD_SUPPORTED) {
            ALOGW("checkEffectCompatibility_l(): non offloadable effect %s created on"
                    " OFFLOAD thread %s", desc->name, mThreadName);
            return BAD_VALUE;
        }
        // nothing actionable on offload threads, if the effect:
        //   - is offloadable: the effect can be created
        //   - is NOT offloadable: the effect should still be created, but EffectHandle::enable()
        //     will take care of invalidating the tracks of the thread
        break;
    case DIRECT:
        // Reject any effect on Direct output threads for now, since the format of