[libcamera-devel] [PATCH v4 01/11] [DNI] include: linux: Extend VIDIOC_ENUM_FMT to support MC-centric devices
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sat Apr 4 02:44:28 CEST 2020
This is an experimental change that hasn't been accepted in mainline
yet. The commit corresponds to the userspace API extensions from v6 1/5
and 2/5, as posted to the linux-media mailing list ([1]).
[1] https://lore.kernel.org/linux-media/20200319004701.30416-1-laurent.pinchart@ideasonboard.com/
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
include/linux/videodev2.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index ab40b3272ed2..66f34fc05e3e 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -476,6 +476,8 @@ struct v4l2_capability {
#define V4L2_CAP_TOUCH 0x10000000 /* Is a touch device */
+#define V4L2_CAP_IO_MC 0x20000000 /* Is input/output controlled by the media controller */
+
#define V4L2_CAP_DEVICE_CAPS 0x80000000 /* sets device capabilities field */
/*
@@ -769,7 +771,8 @@ struct v4l2_fmtdesc {
__u32 flags;
__u8 description[32]; /* Description string */
__u32 pixelformat; /* Format fourcc */
- __u32 reserved[4];
+ __u32 mbus_code; /* Media bus code */
+ __u32 reserved[3];
};
#define V4L2_FMT_FLAG_COMPRESSED 0x0001
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list