msm: eva: Initial migration to new dma-buf API

Per Waipio requirement.

Change-Id: Ic501909c93e9c12cb873458f47f7f86e598f16b0
Signed-off-by: George Shen <sqiao@codeaurora.org>
这个提交包含在:
George Shen
2020-10-21 14:16:59 -07:00
父节点 5f9634ab48
当前提交 928365194b
修改 4 个文件,包含 10 行新增18 行删除

查看文件

@@ -511,7 +511,7 @@ static void msm_cvp_unmap_frame_buf(struct msm_cvp_inst *inst,
if (smem->bitmap_index >= MAX_DMABUF_NUMS) {
/* smem not in dmamap cache */
msm_cvp_unmap_smem(inst, smem, "unmap cpu");
dma_buf_put(smem->dma_buf);
dma_heap_buffer_free(smem->dma_buf);
kmem_cache_free(cvp_driver->smem_cache, smem);
buf->smem = NULL;
} else {
@@ -589,7 +589,7 @@ int msm_cvp_unmap_user_persist(struct msm_cvp_inst *inst,
/* smem not in dmamap cache */
msm_cvp_unmap_smem(inst, smem,
"unmap cpu");
dma_buf_put(smem->dma_buf);
dma_heap_buffer_free(smem->dma_buf);
kmem_cache_free(
cvp_driver->smem_cache,
smem);