diff options
author | Charlie Huang <chahuang@nvidia.com> | 2012-07-31 18:41:38 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-02 19:47:54 -0700 |
commit | dea3cff314ed834dc5d7f3514f9ba0468c0ec133 (patch) | |
tree | 59ff52b2051fd7ca1fc029607136848aee01c843 /include | |
parent | a9d87f3b8f9ec811d6f8e0feb10bfb5151cc659c (diff) |
media: tegra: ov9726: add group hold ioctl
To make AE transition smoother, the group hold enable/disable actions
should be added before and after set gain/frame length/coarse time.
bug 1025995
Change-Id: I578b33167e50f59d0d9a88a0e16fac0c5425b6b6
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/119835
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/ov9726.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/media/ov9726.h b/include/media/ov9726.h index b1e759ba583c..fb9995b4a8de 100644 --- a/include/media/ov9726.h +++ b/include/media/ov9726.h @@ -19,7 +19,8 @@ #define OV9726_IOCTL_SET_FRAME_LENGTH _IOW('o', 2, __u32) #define OV9726_IOCTL_SET_COARSE_TIME _IOW('o', 3, __u32) #define OV9726_IOCTL_SET_GAIN _IOW('o', 4, __u16) -#define OV9726_IOCTL_GET_STATUS _IOR('o', 5, __u8) +#define OV9726_IOCTL_GET_STATUS _IOR('o', 5, __u8) +#define OV9726_IOCTL_SET_GROUP_HOLD _IOW('o', 6, struct ov9726_ae) struct ov9726_mode { int mode_id; @@ -30,6 +31,15 @@ struct ov9726_mode { __u16 gain; }; +struct ov9726_ae { + __u32 frame_length; + __u32 coarse_time; + __u16 gain; + __u8 frame_length_enable; + __u8 coarse_time_enable; + __u8 gain_enable; +}; + struct ov9726_reg { __u16 addr; __u16 val; |