[MEM] Revise .get_dmabuf() to support KERNEL_CMA
authorDongju Chae <dongju.chae@samsung.com>
Tue, 10 Sep 2019 05:45:32 +0000 (14:45 +0900)
committer함명주/On-Device Lab(SR)/Principal Engineer/삼성전자 <myungjoo.ham@samsung.com>
Mon, 16 Sep 2019 07:21:20 +0000 (16:21 +0900)
commit7f451a1cf9ae1e05231e2336f5d3b63bcfd9476e
tree0f5ed458b337330fdf49792c0c6f9c4f8cf73187
parentbaef7397e02f9489621c75d7083ef66ba765c894
[MEM] Revise .get_dmabuf() to support KERNEL_CMA

This commit revise .get_dmabuf() to support KERNEL_CMA mode.
Currently, get_dmabuf() returns the global dmabuf fd for internal memory pool.
As KERNEL_CMA mode handles multiple CMA buffers, it should be revised to support this.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
src/core/ne-host-input-service.c
src/core/ne-mem.c
src/core/ne-mem.h