diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2014-08-05 13:00:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-21 16:25:26 -0400 |
commit | a188a668dda4ea6b9454066343b78d662946fe07 (patch) | |
tree | 78feaebc0a75ac5c0e0e36834ce6b5591f095699 | |
parent | f95a6ce16736ac3aca4eda2238ccdf1913f3567f (diff) |
[media] coda: disable old cropping ioctls
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>
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index a1080a7728e6..ffb4c76e5755 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c | |||
@@ -1661,6 +1661,11 @@ static int coda_register_device(struct coda_dev *dev, struct video_device *vfd) | |||
1661 | vfd->vfl_dir = VFL_DIR_M2M; | 1661 | vfd->vfl_dir = VFL_DIR_M2M; |
1662 | video_set_drvdata(vfd, dev); | 1662 | video_set_drvdata(vfd, dev); |
1663 | 1663 | ||
1664 | /* Not applicable, use the selection API instead */ | ||
1665 | v4l2_disable_ioctl(vfd, VIDIOC_CROPCAP); | ||
1666 | v4l2_disable_ioctl(vfd, VIDIOC_G_CROP); | ||
1667 | v4l2_disable_ioctl(vfd, VIDIOC_S_CROP); | ||
1668 | |||
1664 | return video_register_device(vfd, VFL_TYPE_GRABBER, 0); | 1669 | return video_register_device(vfd, VFL_TYPE_GRABBER, 0); |
1665 | } | 1670 | } |
1666 | 1671 | ||