mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
media: rockchip: flexbus cif fixes error of memops
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I27d479a9d80ae2df788e3166d4ac2ed8f71d5fd2
This commit is contained in:
@@ -1174,10 +1174,7 @@ static int flexbus_cif_init_vb2_queue(struct vb2_queue *q,
|
||||
q->io_modes = VB2_MMAP | VB2_DMABUF;
|
||||
q->drv_priv = stream;
|
||||
q->ops = &flexbus_cif_vb2_ops;
|
||||
if (stream->cif_dev->is_dma_sg_ops)
|
||||
q->mem_ops = &vb2_cma_sg_memops;
|
||||
else
|
||||
q->mem_ops = &vb2_dma_contig_memops;
|
||||
q->mem_ops = &vb2_cma_sg_memops;
|
||||
q->buf_struct_size = sizeof(struct flexbus_cif_buffer);
|
||||
q->min_buffers_needed = CIF_REQ_BUFS_MIN;
|
||||
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
|
||||
|
||||
Reference in New Issue
Block a user