Add support for the newly defined V4L2_CID_CAMERA_ORIENTATION and V4L2_CID_CAMERA_SENSOR_ROTATION read-only controls used to report the camera device mounting position and orientation respectively.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -923,6 +923,13 @@ enum v4l2_auto_focus_range { · 922 unmodified lines | ||
| 923 | 923 | #define V4L2_CID_PAN_SPEED (V4L2_CID_CAMERA_CLASS_BASE+32) |
| 924 | 924 | #define V4L2_CID_TILT_SPEED (V4L2_CID_CAMERA_CLASS_BASE+33) |
| 925 | 925 | |
| 926 | +#define V4L2_CID_CAMERA_ORIENTATION (V4L2_CID_CAMERA_CLASS_BASE+34) | |
| 927 | +#define V4L2_CAMERA_ORIENTATION_FRONT 0 | |
| 928 | +#define V4L2_CAMERA_ORIENTATION_BACK 1 | |
| 929 | +#define V4L2_CAMERA_ORIENTATION_EXTERNAL 2 | |
| 930 | + | |
| 931 | +#define V4L2_CID_CAMERA_SENSOR_ROTATION (V4L2_CID_CAMERA_CLASS_BASE+35) | |
| 932 | + | |
| 926 | 933 | /* FM Modulator class control IDs */ |
| 927 | 934 | |
| 928 | 935 | #define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900) |