diff options
| author | David Wang <davidw@nvidia.com> | 2017-04-11 21:05:37 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-24 03:13:38 -0400 |
| commit | 485055a93029a03dc72e2ef0da96d055d4789f04 (patch) | |
| tree | 6d2ff1eb2fb9a3da3addf862b69f32c3702f72c0 /include/media | |
| parent | cc4295063c7507fa9359e64ec580fbee913b1672 (diff) | |
tegra: camera: updated control CID define
Move control CID define to tegra-v4l2-camera and switched
CID prefix from V4L2 to TEGRA_CAMERA. Updated users of camera
controls to use new defines.
Change-Id: Ifb1d4e9e3ed438bd13dd3af1d0ec16cb885f4474
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/1460998
GVS: Gerrit_Virtual_Submit
Reviewed-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/camera_common.h | 39 | ||||
| -rw-r--r-- | include/media/i2c/tc358840.h | 11 |
2 files changed, 7 insertions, 43 deletions
diff --git a/include/media/camera_common.h b/include/media/camera_common.h index 0232d2bd0..016cb09ae 100644 --- a/include/media/camera_common.h +++ b/include/media/camera_common.h | |||
| @@ -40,45 +40,6 @@ | |||
| 40 | #include <media/nvc_focus.h> | 40 | #include <media/nvc_focus.h> |
| 41 | #include <media/camera_version_utils.h> | 41 | #include <media/camera_version_utils.h> |
| 42 | 42 | ||
| 43 | #define V4L2_CID_TEGRA_CAMERA_BASE (V4L2_CTRL_CLASS_CAMERA | 0x2000) | ||
| 44 | |||
| 45 | #define V4L2_CID_FRAME_LENGTH (V4L2_CID_TEGRA_CAMERA_BASE+0) | ||
| 46 | #define V4L2_CID_COARSE_TIME (V4L2_CID_TEGRA_CAMERA_BASE+1) | ||
| 47 | #define V4L2_CID_COARSE_TIME_SHORT (V4L2_CID_TEGRA_CAMERA_BASE+2) | ||
| 48 | #define V4L2_CID_GROUP_HOLD (V4L2_CID_TEGRA_CAMERA_BASE+3) | ||
| 49 | #define V4L2_CID_HDR_EN (V4L2_CID_TEGRA_CAMERA_BASE+4) | ||
| 50 | #define V4L2_CID_EEPROM_DATA (V4L2_CID_TEGRA_CAMERA_BASE+5) | ||
| 51 | #define V4L2_CID_OTP_DATA (V4L2_CID_TEGRA_CAMERA_BASE+6) | ||
| 52 | #define V4L2_CID_FUSE_ID (V4L2_CID_TEGRA_CAMERA_BASE+7) | ||
| 53 | #define V4L2_CID_TEGRA_CAMERA_LAST (V4L2_CID_TEGRA_CAMERA_BASE+8) | ||
| 54 | #define V4L2_CID_SENSOR_MODE_ID (V4L2_CID_TEGRA_CAMERA_BASE+10) | ||
| 55 | |||
| 56 | /* undefine default CID for GAIN/EXPOSURE and use NV's version */ | ||
| 57 | #undef V4L2_CID_GAIN | ||
| 58 | #undef V4L2_CID_EXPOSURE | ||
| 59 | #define V4L2_CID_GAIN (V4L2_CID_TEGRA_CAMERA_BASE+11) | ||
| 60 | #define V4L2_CID_EXPOSURE (V4L2_CID_TEGRA_CAMERA_BASE+12) | ||
| 61 | #define V4L2_CID_FRAME_RATE (V4L2_CID_TEGRA_CAMERA_BASE+13) | ||
| 62 | |||
| 63 | #define V4L2_CID_VI_BYPASS_MODE (V4L2_CID_TEGRA_CAMERA_BASE+100) | ||
| 64 | #define V4L2_CID_OVERRIDE_ENABLE (V4L2_CID_TEGRA_CAMERA_BASE+101) | ||
| 65 | #define V4L2_CID_VI_HEIGHT_ALIGN (V4L2_CID_TEGRA_CAMERA_BASE+102) | ||
| 66 | #define V4L2_CID_VI_SIZE_ALIGN (V4L2_CID_TEGRA_CAMERA_BASE+103) | ||
| 67 | #define V4L2_CID_WRITE_ISPFORMAT (V4L2_CID_TEGRA_CAMERA_BASE+104) | ||
| 68 | #define V4L2_CID_VI_CAPTURE_SETUP (V4L2_CID_TEGRA_CAMERA_BASE+105) | ||
| 69 | #define V4L2_CID_VI_CAPTURE_INFO (V4L2_CID_TEGRA_CAMERA_BASE+106) | ||
| 70 | #define V4L2_CID_VI_CAPTURE_RESET (V4L2_CID_TEGRA_CAMERA_BASE+107) | ||
| 71 | #define V4L2_CID_VI_CAPTURE_RELEASE (V4L2_CID_TEGRA_CAMERA_BASE+108) | ||
| 72 | #define V4L2_CID_VI_CAPTURE_CONFIG (V4L2_CID_TEGRA_CAMERA_BASE+109) | ||
| 73 | #define V4L2_CID_VI_CAPTURE_REQUEST (V4L2_CID_TEGRA_CAMERA_BASE+110) | ||
| 74 | #define V4L2_CID_VI_CAPTURE_STATUS (V4L2_CID_TEGRA_CAMERA_BASE+111) | ||
| 75 | |||
| 76 | #define MAX_BUFFER_SIZE 32 | ||
| 77 | #define MAX_CID_CONTROLS 16 | ||
| 78 | #define MAX_NUM_SENSOR_MODES 30 | ||
| 79 | #define OF_MAX_STR_LEN 256 | ||
| 80 | #define OF_SENSORMODE_PREFIX ("mode") | ||
| 81 | |||
| 82 | /* | 43 | /* |
| 83 | * Scaling factor for converting a Q10.22 fixed point value | 44 | * Scaling factor for converting a Q10.22 fixed point value |
| 84 | * back to its original floating point value | 45 | * back to its original floating point value |
diff --git a/include/media/i2c/tc358840.h b/include/media/i2c/tc358840.h index 98161225c..31ffe8f12 100644 --- a/include/media/i2c/tc358840.h +++ b/include/media/i2c/tc358840.h | |||
| @@ -77,13 +77,16 @@ struct tc358840_platform_data { | |||
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | /* custom controls */ | 79 | /* custom controls */ |
| 80 | #define V4L2_CID_USER_TC358840_BASE (V4L2_CID_BASE + 0x1000) | 80 | #define TEGRA_CAMERA_CID_USER_TC358840_BASE (TEGRA_CAMERA_CID_BASE + 0x1000) |
| 81 | 81 | ||
| 82 | /* Audio sample rate in Hz */ | 82 | /* Audio sample rate in Hz */ |
| 83 | #define TC358840_CID_AUDIO_SAMPLING_RATE (V4L2_CID_USER_TC358840_BASE + 1) | 83 | #define TC358840_CID_AUDIO_SAMPLING_RATE \ |
| 84 | (TEGRA_CAMERA_CID_USER_TC358840_BASE + 1) | ||
| 84 | /* Audio present status */ | 85 | /* Audio present status */ |
| 85 | #define TC358840_CID_AUDIO_PRESENT (V4L2_CID_USER_TC358840_BASE + 2) | 86 | #define TC358840_CID_AUDIO_PRESENT \ |
| 87 | (TEGRA_CAMERA_CID_USER_TC358840_BASE + 2) | ||
| 86 | /* Splitter width */ | 88 | /* Splitter width */ |
| 87 | #define TC358840_CID_SPLITTER_WIDTH (V4L2_CID_USER_TC358840_BASE + 3) | 89 | #define TC358840_CID_SPLITTER_WIDTH \ |
| 90 | (TEGRA_CAMERA_CID_USER_TC358840_BASE + 3) | ||
| 88 | 91 | ||
| 89 | #endif /* _TC358840_ */ | 92 | #endif /* _TC358840_ */ |
