Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: atomisp: Add DMABUF support

Add DMABUF support and while at it drop userptr support.

Now that atomisp has been ported to videobuf2 this is trivial.

Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Hans de Goede and committed by
Mauro Carvalho Chehab
c651e565 e4d2abc7

+2 -1
+1
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
··· 1666 1666 .vidioc_querybuf = vb2_ioctl_querybuf, 1667 1667 .vidioc_qbuf = atomisp_qbuf_wrapper, 1668 1668 .vidioc_dqbuf = atomisp_dqbuf_wrapper, 1669 + .vidioc_expbuf = vb2_ioctl_expbuf, 1669 1670 .vidioc_streamon = vb2_ioctl_streamon, 1670 1671 .vidioc_streamoff = vb2_ioctl_streamoff, 1671 1672 .vidioc_default = atomisp_vidioc_default,
+1 -1
drivers/staging/media/atomisp/pci/atomisp_subdev.c
··· 765 765 766 766 /* Init videobuf2 queue structure */ 767 767 pipe->vb_queue.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 768 - pipe->vb_queue.io_modes = VB2_MMAP | VB2_USERPTR; 768 + pipe->vb_queue.io_modes = VB2_MMAP | VB2_DMABUF; 769 769 pipe->vb_queue.buf_struct_size = sizeof(struct ia_css_frame); 770 770 pipe->vb_queue.ops = &atomisp_vb2_ops; 771 771 pipe->vb_queue.mem_ops = &vb2_vmalloc_memops;