diff options
author | Prayas Mohanty <pmohanty@nvidia.com> | 2011-10-24 16:21:04 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2011-10-25 13:21:39 -0700 |
commit | 8a8a63c00fabc56f5f1b107074d63571debdeddc (patch) | |
tree | b6a73003f526c6686594b5659e16bb1d84f1134e | |
parent | 444071aa6713027df86a41de05390bf9f8c94498 (diff) |
media: video: tegra: ar0832: tune 800x600 sensor registers
Modify the READ_MODE and SCALING_MODE sensor register
for 800x600 sensor mode, making it same as other working
modes. This fixes the incorrect colors during camera
preview.
bug 873857
Change-Id: I3b871f6e7a7768c9a17dcf9183e972efbc7e004f
Reviewed-on: http://git-master/r/59921
Reviewed-by: Krupal Divvela <kdivvela@nvidia.com>
Tested-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | drivers/media/video/tegra/ar0832_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/tegra/ar0832_main.c b/drivers/media/video/tegra/ar0832_main.c index f7bc29597b44..3bb494c5ac17 100644 --- a/drivers/media/video/tegra/ar0832_main.c +++ b/drivers/media/video/tegra/ar0832_main.c @@ -748,11 +748,11 @@ static struct ar0832_reg mode_800X600[] = { {0x034A, 0x05FB}, /* Y_ADDR_END */ {0x034C, 0x0320}, /* X_OUTPUT_SIZE */ {0x034E, 0x0260}, /* Y_OUTPUT_SIZE */ - {0x3040, 0x0041}, /* READ_MODE */ + {0x3040, 0xC041}, /* READ_MODE */ {0x306E, 0xFC80}, /* DATAPATH_SELECT */ {0x3178, 0x0000}, /* RESERVED_MFR_3178 */ {0x3ED0, 0x1E24}, /* RESERVED_MFR_3ED0 */ - {0x0400, 0x0002}, /* SCALING_MODE */ + {0x0400, 0x0000}, /* SCALING_MODE */ {0x0404, 0x0010}, /* SCALE_M */ {0x0342, 0x08A8}, /* LINE_LENGTH_PCK */ {0x0340, 0x02E7}, /* FRAME_LENGTH_LINES */ |