media: via-camera: fix v4l2-compliance fails
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 17 Jul 2019 09:03:45 +0000 (05:03 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 23 Jul 2019 15:39:56 +0000 (11:39 -0400)
commitec8b22b4bd8e9d797bbafc5b2a941e215587c8b5
tree27130b6a5afe09313416a7f91b8879b17d1a281c
parentfa564e90257e5aa5b69a0c70fe59a91da3547897
media: via-camera: fix v4l2-compliance fails

The patch fixes various v4l2-compliance failures:

- missing support for control events
- support of s/g_std even though this doesn't apply to a webcam
- missing colorspace reporting
- bus_info wasn't filled in by VIDIOC_QUERYCAP
- parm.capture.readbuffers was overridden with wrong value
- viacam_enum_framesizes/intervals didn't check the arguments

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/via-camera.c