Skip to content
Permalink
Browse files

media: rockchip: rga: add userptr to use normal cache-enabled memory

It seems people still need it

Change-Id: I4aa312b46f795beeb3eff415a971d13e81f030f8
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
  • Loading branch information...
wzyy2 authored and rkhuangtao committed Feb 5, 2018
1 parent ddc0536 commit eae92ae2b930999857df47c3057327c1c490454b
Showing with 2 additions and 2 deletions.
  1. +2 −2 drivers/media/platform/rockchip/rga/rga.c
@@ -122,7 +122,7 @@ queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq)
int ret;

src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
src_vq->io_modes = VB2_MMAP | VB2_DMABUF;
src_vq->io_modes = VB2_USERPTR | VB2_MMAP | VB2_DMABUF;
src_vq->drv_priv = ctx;
src_vq->ops = &rga_qops;
src_vq->mem_ops = &vb2_dma_sg_memops;
@@ -135,7 +135,7 @@ queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq)
return ret;

dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
dst_vq->io_modes = VB2_MMAP | VB2_DMABUF;
dst_vq->io_modes = VB2_USERPTR | VB2_MMAP | VB2_DMABUF;
dst_vq->drv_priv = ctx;
dst_vq->ops = &rga_qops;
dst_vq->mem_ops = &vb2_dma_sg_memops;

0 comments on commit eae92ae

Please sign in to comment.
You can’t perform that action at this time.