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

Commit 57a3ad8d authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Steve Kondik
Browse files

exynos4: getphys implementation on buffermanager for samsung omx

Change-Id: Iee665f56aaf601479d796703db983ca5fce9c5c3

Conflicts:
	include/media/hardware/HardwareAPI.h
	include/ui/GraphicBufferMapper.h
	libs/ui/GraphicBufferMapper.cpp
parent 81300f6d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -50,6 +50,10 @@ public:

    status_t unlock(buffer_handle_t handle);
    
#ifdef EXYNOS4210_ENHANCEMENTS
    status_t getphys(buffer_handle_t handle, void** 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
@@ -109,5 +109,18 @@ status_t GraphicBufferMapper::unlock(buffer_handle_t handle)
    return err;
}

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

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

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

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