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

Commit 356ad795 authored by codeworkx's avatar codeworkx
Browse files

exynos4: getphys implementation on buffermanager for samsung omx

Change-Id: Ifa6ac008d56ddaa10297803ad09ebe70cba3417f
parent 81b18090
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -47,6 +47,10 @@ public:

    status_t unlock(buffer_handle_t handle);

#ifdef EXYNOS4210_ENHANCEMENTS
    status_t getphys(buffer_handle_t handle, int *paddr);
#endif

    // dumps information about the mapping of this handle
    void dump(buffer_handle_t handle);

+13 −0
Original line number Diff line number Diff line
@@ -102,5 +102,18 @@ status_t GraphicBufferMapper::unlock(buffer_handle_t handle)
    return err;
}

#ifdef EXYNOS4210_ENHANCEMENTS
status_t GraphicBufferMapper::getphys(buffer_handle_t handle, int *paddr)
{
    status_t err;

    err = mAllocMod->getphys(mAllocMod, handle, paddr);

    LOGW_IF(err, "getphys(%p) fail %d(%s)",
            handle, err, strerror(-err));
    return err;
}
#endif

// ---------------------------------------------------------------------------
}; // namespace android