summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
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)