video: rockchip: rga3: fix mpi_commit failed.

Because struct rga_external_buffer is not initialized before importbuffer.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I51e341b80aee6bb4ea70eee4f6c9a247947a8f85
This commit is contained in:
Yu Qiaowei
2022-12-15 15:02:22 +08:00
committed by Tao Huang
parent 190db3b49f
commit 57f2a778a0

View File

@@ -35,6 +35,7 @@ static int rga_mpi_set_channel_buffer(struct dma_buf *dma_buf,
{
struct rga_external_buffer buffer;
memset(&buffer, 0x0, sizeof(buffer));
buffer.memory = (unsigned long)dma_buf;
buffer.type = RGA_DMA_BUFFER_PTR;
buffer.memory_parm.width = channel_info->vir_w;