diff options
author | Karl Kim <kkim@nvidia.com> | 2014-05-28 15:45:36 +0900 |
---|---|---|
committer | Peter Kim <pekim@nvidia.com> | 2014-06-22 21:18:12 -0700 |
commit | bf3fac8d1068ffba13715c83c5119a9050b8bae1 (patch) | |
tree | a81d95d13220140b120f7aeac25a766b5b69b586 | |
parent | 146771fd9bfa9d37a5b737f99ab91f693214f0f5 (diff) |
media:video:tegra: adjusting ov5693 sensor setting
Center offset is different each sensor mode.
Bug 200005968
Change-Id: I3a80abaacd71d05dae66bf30612899f2c50a101f
Signed-off-by: Karl Kim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/415657
(cherry picked from commit 9d422ac409bab00ea307587a17b575b9f159cef7)
Reviewed-on: http://git-master/r/426540
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Kim <pekim@nvidia.com>
-rw-r--r-- | drivers/media/video/tegra/ov5693.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/media/video/tegra/ov5693.c b/drivers/media/video/tegra/ov5693.c index 84a2b8494dc8..298677d54e86 100644 --- a/drivers/media/video/tegra/ov5693.c +++ b/drivers/media/video/tegra/ov5693.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -39,10 +39,10 @@ #define OV5693_TABLE_RESET 2 #define OV5693_TABLE_RESET_TIMEOUT 50 #define OV5693_LENS_MAX_APERTURE 0 /* _INT2FLOAT_DIVISOR */ -#define OV5693_LENS_FNUMBER 0 /* _INT2FLOAT_DIVISOR */ +#define OV5693_LENS_FNUMBER 2400 /* _INT2FLOAT_DIVISOR */ #define OV5693_LENS_FOCAL_LENGTH 6120 /* _INT2FLOAT_DIVISOR */ -#define OV5693_LENS_VIEW_ANGLE_H 60000 /* _INT2FLOAT_DIVISOR */ -#define OV5693_LENS_VIEW_ANGLE_V 60000 /* _INT2FLOAT_DIVISOR */ +#define OV5693_LENS_VIEW_ANGLE_H 62800 /* _INT2FLOAT_DIVISOR */ +#define OV5693_LENS_VIEW_ANGLE_V 62800 /* _INT2FLOAT_DIVISOR */ #define OV5693_OTP_BUF_SIZE 16 #define OV5693_FUSE_ID_SIZE 8 @@ -257,11 +257,11 @@ static const struct ov5693_reg ov5693_2592x1944_i2c[] = { {0x37de, 0x00}, {0x37df, 0x00}, {0x3800, 0x00}, - {0x3801, 0x02}, + {0x3801, 0x14}, {0x3802, 0x00}, {0x3803, 0x02}, {0x3804, 0x0a}, - {0x3805, 0x41}, + {0x3805, 0x53}, {0x3806, 0x07}, {0x3807, 0xa5}, {0x3808, 0x0a}, @@ -1013,11 +1013,11 @@ static const struct ov5693_reg ov5693_1280x720_120fps_i2c[] = { {0x37de, 0x00}, {0x37df, 0x00}, {0x3800, 0x00}, - {0x3801, 0x00}, + {0x3801, 0x10}, {0x3802, 0x00}, {0x3803, 0xf4}, {0x3804, 0x0a}, - {0x3805, 0x3f}, + {0x3805, 0x4f}, {0x3806, 0x06}, {0x3807, 0xab}, {0x3808, 0x05}, @@ -3081,6 +3081,7 @@ static int ov5693_set_mode(struct ov5693_info *info, dev_dbg(&info->i2c_client->dev, "%s: AE: %d, %d, %d\n", __func__, mode->frame_length, mode->coarse_time, mode->gain); + err |= ov5693_exposure_wr(info, mode); if (err < 0) { info->mode_valid = false; |