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

Commit 52022aaf authored by Ram Mohan's avatar Ram Mohan Committed by android-build-merger
Browse files

Merge "Allow portMode configuration in loaded state only" into oc-mr1-dev

am: ee5201b4

Change-Id: I11cb819a277e1a9d83197629f85a4f64c4fa73bc
parents 6334a2cd ee5201b4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -679,6 +679,11 @@ status_t OMXNodeInstance::setPortMode(OMX_U32 portIndex, IOMX::PortMode mode) {
        return BAD_VALUE;
    }

    if (mSailed || mNumPortBuffers[portIndex] > 0) {
        android_errorWriteLog(0x534e4554, "29422020");
        return INVALID_OPERATION;
    }

    CLOG_CONFIG(setPortMode, "%s(%d), port %d", asString(mode), mode, portIndex);

    switch (mode) {