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

Commit 78e8d9f6 authored by Dheeraj CVR's avatar Dheeraj CVR Committed by Gerrit Code Review
Browse files

libstagefright: [Reworked] Fix incorrectness nPortIndex value for QueryCodec

http://review.cyanogenmod.org/#/c/32358/ was intended to fix
issues with OMX Components failing on ME722 (OMAP3).
This patch was working fine on OMAP3 devices and was required
to fix issues DSP MMU FAULTS. It has been reverted with patch
http://review.cyanogenmod.org/44486 which again broke OMX on
OMAP3.

Implement a Workaround for OMAP using OMAP_ENHANCEMENT

Log for this issue observed on P970 (OMAP3) during Gallery
Thumbnail Generation: http://pastebin.com/qRTpm7RN

DmmMap():1600 DSPProcessor_ReserveMemory() failed - error 0xfffffffb

Change-Id: Ifd0c784e354c6c00401686cc0f2188842df9496c
parent 01d0bd2f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5432,7 +5432,11 @@ status_t QueryCodec(
    // Color format query
    OMX_VIDEO_PARAM_PORTFORMATTYPE portFormat;
    InitOMXParams(&portFormat);
#ifdef OMAP_ENHANCEMENT
    portFormat.nPortIndex = !isEncoder ? 0 : 1;
#else
    portFormat.nPortIndex = !isEncoder ? 1 : 0;
#endif
    for (OMX_U32 index = 0;;index++)  {
        portFormat.nIndex = index;
        err = omx->getParameter(