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

Commit c576a74c 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

am: 52022aaf

Change-Id: I2d552b99e4db1206e292bd0cf39ef2bb619d3b35
parents 4c077b18 52022aaf
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) {