media: v4l2-dev/ioctl: Add V4L2_CAP_IO_MC
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 21 Apr 2020 13:57:38 +0000 (15:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 6 May 2020 10:08:25 +0000 (12:08 +0200)
commitf645e6256bd1b12523b759fcc610861fb21c24c7
treedf1fc55bdf247837d7f13dddf9e30dacb7fcc486
parent92f0fa8b5df43a88e0a0a7d9f4cbebc079bdcf79
media: v4l2-dev/ioctl: Add V4L2_CAP_IO_MC

Add a video device capability flag to indicate that its inputs and/or
outputs are controlled by the Media Controller instead of the V4L2 API.
When this flag is set, ioctl for enum inputs and outputs are
automatically enabled and programmed to call a helper function.

Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/userspace-api/media/v4l/vidioc-querycap.rst
Documentation/userspace-api/media/videodev2.h.rst.exceptions
drivers/media/v4l2-core/v4l2-dev.c
drivers/media/v4l2-core/v4l2-ioctl.c
include/uapi/linux/videodev2.h