media: zoran: from VB2_READ/WRITE: read/write isn't supported
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Aug 2022 11:54:44 +0000 (13:54 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 29 Aug 2022 13:32:15 +0000 (15:32 +0200)
The read/write file operations are not implemented, so no
need to set VB2_READ and VB2_WRITE flags.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/zoran/zoran_driver.c

index 212b6d1..fa672cc 100644 (file)
@@ -964,7 +964,7 @@ int zoran_queue_init(struct zoran *zr, struct vb2_queue *vq, int dir)
        vq->dev = &zr->pci_dev->dev;
        vq->type = dir;
 
-       vq->io_modes = VB2_DMABUF | VB2_MMAP | VB2_READ | VB2_WRITE;
+       vq->io_modes = VB2_DMABUF | VB2_MMAP;
        vq->drv_priv = zr;
        vq->buf_struct_size = sizeof(struct zr_buffer);
        vq->ops = &zr_video_qops;