From 52d5650f888629b0318b4d7a182e51c1d2012d64 Mon Sep 17 00:00:00 2001 From: Hao Tang Date: Fri, 31 Aug 2012 14:02:50 +0800 Subject: media:video:tegra: add mwb for ov5640 Add manual white balance setting for OV5640 Bug 1019408 Change-Id: If047d9692ba810435b7bf03e3934ec204e8f6ad9 Signed-off-by: Hao Tang Reviewed-on: http://git-master/r/135112 Reviewed-by: Philip Breczinski Reviewed-by: Dan Willemsen --- drivers/media/video/tegra/ov5640_tables.h | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'drivers/media/video/tegra/ov5640_tables.h') diff --git a/drivers/media/video/tegra/ov5640_tables.h b/drivers/media/video/tegra/ov5640_tables.h index 94cf1da31ec2..4065bcd936b9 100644 --- a/drivers/media/video/tegra/ov5640_tables.h +++ b/drivers/media/video/tegra/ov5640_tables.h @@ -4579,4 +4579,61 @@ static struct ov5640_reg tbl_release_focus[] = { {OV5640_TABLE_END, 0x0000} }; +static struct ov5640_reg wb_auto[] = { + {0x3406, 0x00}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg wb_incandescent[] = { + {0x3406, 0x01}, + {0x3400, 0x04}, + {0x3401, 0x10}, + {0x3402, 0x04}, + {0x3403, 0x00}, + {0x3404, 0x08}, + {0x3405, 0x40}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg wb_daylight[] = { + {0x3406, 0x01}, + {0x3400, 0x06}, + {0x3401, 0x1c}, + {0x3402, 0x04}, + {0x3403, 0x00}, + {0x3404, 0x04}, + {0x3405, 0xf3}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg wb_fluorescent[] = { + {0x3406, 0x01}, + {0x3400, 0x05}, + {0x3401, 0x48}, + {0x3402, 0x04}, + {0x3403, 0x00}, + {0x3404, 0x07}, + {0x3405, 0xcf}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg wb_cloudy[] = { + {0x3406, 0x01}, + {0x3400, 0x06}, + {0x3401, 0x48}, + {0x3402, 0x04}, + {0x3403, 0x00}, + {0x3404, 0x04}, + {0x3405, 0xd3}, + {OV5640_TABLE_END, 0x0000} +}; + +static struct ov5640_reg *wb_table[] = { + [OV5640_WB_AUTO] = wb_auto, + [OV5640_WB_INCANDESCENT] = wb_incandescent, + [OV5640_WB_DAYLIGHT] = wb_daylight, + [OV5640_WB_FLUORESCENT] = wb_fluorescent, + [OV5640_WB_CLOUDY] = wb_cloudy, +}; + #endif -- cgit v1.2.3