OSDN Git Service

media: v4l: Add support for STD ioctls on subdev nodes
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 17 May 2018 14:30:16 +0000 (10:30 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 24 Jul 2018 21:39:28 +0000 (17:39 -0400)
commit56ab8cdbc1438507d79085fcc7e511327d84aeb8
treecd7d3e72c22dfc26e9857793e65d1053ed19db3a
parentbe9543ec9e7423894473ec9314023e505e26fc52
media: v4l: Add support for STD ioctls on subdev nodes

There is no way to control the standard of subdevices which are part of
a media device. The ioctls which exists all target video devices
explicitly and the idea is that the video device should talk to the
subdevice. For subdevices part of a media graph this is not possible and
the standard must be controlled on the subdev device directly.

Add four new ioctls to be able to directly interact with subdevices and
control the video standard; VIDIOC_SUBDEV_ENUMSTD, VIDIOC_SUBDEV_G_STD,
VIDIOC_SUBDEV_S_STD and VIDIOC_SUBDEV_QUERYSTD.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/media/uapi/v4l/vidioc-enumstd.rst
Documentation/media/uapi/v4l/vidioc-g-std.rst
Documentation/media/uapi/v4l/vidioc-querystd.rst
drivers/media/v4l2-core/v4l2-subdev.c
include/uapi/linux/v4l2-subdev.h