From 366507962fa83b76d9bf9553fa53f46b1834c1a7 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Sat, 17 Aug 2019 11:42:43 +0200 Subject: 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 Signed-off-by: Jacopo Mondi --- include/linux/v4l2-controls.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/linux') 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) -- cgit v1.2.1