[media] coda: disable old cropping ioctls
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 5 Aug 2014 17:00:20 +0000 (14:00 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 21 Aug 2014 20:25:26 +0000 (15:25 -0500)
Since we neither support composing on the OUTPUT side, nor cropping
on the CAPTURE side, disable VIDIOC_CROPCAP and VIDIOC_G/S_CROP
altogether. This silences a GStreamer warning when GStreamer tries
to obtain the pixel aspect ratio using VIDIOC_CROPCAP.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/coda/coda-common.c

index a1080a7728e63ed4ae7404feb77f1752ab998b05..ffb4c76e5755b4c78f368606b2b3dce7bd64efd9 100644 (file)
@@ -1661,6 +1661,11 @@ static int coda_register_device(struct coda_dev *dev, struct video_device *vfd)
        vfd->vfl_dir    = VFL_DIR_M2M;
        video_set_drvdata(vfd, dev);
 
+       /* Not applicable, use the selection API instead */
+       v4l2_disable_ioctl(vfd, VIDIOC_CROPCAP);
+       v4l2_disable_ioctl(vfd, VIDIOC_G_CROP);
+       v4l2_disable_ioctl(vfd, VIDIOC_S_CROP);
+
        return video_register_device(vfd, VFL_TYPE_GRABBER, 0);
 }
 
This page took 0.025182 seconds and 5 git commands to generate.