summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-08-17 11:42:43 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-02-14 16:27:29 +0100
commit366507962fa83b76d9bf9553fa53f46b1834c1a7 (patch)
tree561774996aedada2fbd2c6aee16adba033ccd3d0 /include/linux
parenta9b83617d27891853888a0eebb6702d02677090d (diff)
include: linux: Update v4l2-controls.h
Import a temporary version of the v4l2-controls.h with the newly added definition of V4L2_CID_CAMERA_SENSOR_LOCATION and V4L2_CID_CAMERA_SENSOR_ROTATION controls. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/v4l2-controls.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/v4l2-controls.h b/include/linux/v4l2-controls.h
index ef2ee5b7..1213961c 100644
--- a/include/linux/v4l2-controls.h
+++ b/include/linux/v4l2-controls.h
@@ -910,6 +910,25 @@ enum v4l2_auto_focus_range {
#define V4L2_CID_PAN_SPEED (V4L2_CID_CAMERA_CLASS_BASE+32)
#define V4L2_CID_TILT_SPEED (V4L2_CID_CAMERA_CLASS_BASE+33)
+/*
+ * This version of the v4l2-controls.h header part of the libcamera sources has
+ * deviated from the version distributed by the mainline Linux kernel.
+ *
+ * Specifically, this version includes temporary definitions of a few custom
+ * controls (V4L2_CID_CAMERA_SENSOR_ROTATION and
+ * V4L2_CID_CAMERA_SENSOR_LOCATION) which have not yet made their way to
+ * upstream Linux.
+ *
+ * When updating this header with a more recent version, make sure the new
+ * version has those additional controls defined.
+ */
+#define V4L2_CID_CAMERA_SENSOR_LOCATION (V4L2_CID_CAMERA_CLASS_BASE+34)
+#define V4L2_LOCATION_FRONT 0
+#define V4L2_LOCATION_BACK 1
+#define V4L2_LOCATION_EXTERNAL 2
+
+#define V4L2_CID_CAMERA_SENSOR_ROTATION (V4L2_CID_CAMERA_CLASS_BASE+35)
+
/* FM Modulator class control IDs */
#define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900)