Skip to content

Commit

Permalink
media: rockchip: rga: add userptr to use normal cache-enabled memory
Browse files Browse the repository at this point in the history
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 24, 2018
1 parent ddc0536 commit eae92ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/rockchip/rga/rga.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit eae92ae

Please sign in to comment.