xref: /aosp_15_r20/external/strace/xlat/v4l2_control_id_bases.in (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_BASE				(V4L2_CTRL_CLASS_USER | 0x900)
2*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_MEYE_BASE			(V4L2_CID_BASE | 0x1000)
3*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_BTTV_BASE			(V4L2_CID_BASE | 0x1010)
4*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_S2255_BASE		(V4L2_CID_BASE | 0x1030)
5*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_SI476X_BASE		(V4L2_CID_BASE | 0x1040)
6*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_TI_VPE_BASE		(V4L2_CID_BASE | 0x1050)
7*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_SAA7134_BASE		(V4L2_CID_BASE | 0x1060)
8*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_ADV7180_BASE		(V4L2_CID_BASE | 0x1070)
9*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_TC358743_BASE		(V4L2_CID_BASE | 0x1080)
10*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_MAX217X_BASE		(V4L2_CID_BASE | 0x1090)
11*cf84ac9aSAndroid Build Coastguard Worker#ifndef STRACE_WORKAROUND_FOR_V4L2_CID_USER_IMX_BASE
12*cf84ac9aSAndroid Build Coastguard Worker# define STRACE_WORKAROUND_FOR_V4L2_CID_USER_IMX_BASE
13*cf84ac9aSAndroid Build Coastguard Worker/*
14*cf84ac9aSAndroid Build Coastguard Worker * Linux kernel commit v4.18-rc2-106-g421860b9d47053badce4b247576fa48df9ab4c48
15*cf84ac9aSAndroid Build Coastguard Worker * has changed the value of V4L2_CID_USER_IMX_BASE constant introduced
16*cf84ac9aSAndroid Build Coastguard Worker * by commit v4.13-rc1~141^2~121 because the old value was already used
17*cf84ac9aSAndroid Build Coastguard Worker * by V4L2_CID_USER_MAX217X_BASE.
18*cf84ac9aSAndroid Build Coastguard Worker * This is of course an ABI breakage that affects Linux kernels starting
19*cf84ac9aSAndroid Build Coastguard Worker * with 4.13 and up to 4.18, as well as their LTS derivatives.
20*cf84ac9aSAndroid Build Coastguard Worker * Since the imx driver didn't provide any public control ID definitions,
21*cf84ac9aSAndroid Build Coastguard Worker * it looks like the best way to handle this situation is to pretend that
22*cf84ac9aSAndroid Build Coastguard Worker * the old value of V4L2_CID_USER_IMX_BASE didn't exist.
23*cf84ac9aSAndroid Build Coastguard Worker */
24*cf84ac9aSAndroid Build Coastguard Worker# undef V4L2_CID_USER_IMX_BASE
25*cf84ac9aSAndroid Build Coastguard Worker#endif
26*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_USER_IMX_BASE			(V4L2_CID_BASE | 0x10b0)
27*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_MPEG_BASE			(V4L2_CTRL_CLASS_MPEG | 0x900)
28*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_MPEG_CX2341X_BASE		(V4L2_CTRL_CLASS_MPEG | 0x1000)
29*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_MPEG_MFC51_BASE		(V4L2_CTRL_CLASS_MPEG | 0x1100)
30*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_CAMERA_CLASS_BASE		(V4L2_CTRL_CLASS_CAMERA | 0x900)
31*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_FM_TX_CLASS_BASE		(V4L2_CTRL_CLASS_FM_TX | 0x900)
32*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_FLASH_CLASS_BASE		(V4L2_CTRL_CLASS_FLASH | 0x900)
33*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_JPEG_CLASS_BASE		(V4L2_CTRL_CLASS_JPEG | 0x900)
34*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_IMAGE_SOURCE_CLASS_BASE	(V4L2_CTRL_CLASS_IMAGE_SOURCE | 0x900)
35*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_IMAGE_PROC_CLASS_BASE		(V4L2_CTRL_CLASS_IMAGE_PROC | 0x900)
36*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_DV_CLASS_BASE			(V4L2_CTRL_CLASS_DV | 0x900)
37*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_FM_RX_CLASS_BASE		(V4L2_CTRL_CLASS_FM_RX | 0x900)
38*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_RF_TUNER_CLASS_BASE		(V4L2_CTRL_CLASS_RF_TUNER | 0x900)
39*cf84ac9aSAndroid Build Coastguard WorkerV4L2_CID_DETECT_CLASS_BASE		(V4L2_CTRL_CLASS_DETECT | 0x900)
40