1 From aab5d5842d718544ef906dc8cc5c221e6121160f Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Wed, 29 Jan 2020 15:31:32 +0000
4 Subject: [PATCH] media: ov5647: change defaults to better match raw
9 * AWB is now off by default.
11 * AEC/AGC is also off by default.
13 * The default mode is changed to the 10-bit 2x2 binned mode.
15 AWB and AEC/AGC can be re-enabled using the usual V4L2 controls. The
16 original 8-bit mode will be respected if an application requests the
19 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
20 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
22 drivers/media/i2c/ov5647.c | 10 +++++-----
23 1 file changed, 5 insertions(+), 5 deletions(-)
25 --- a/drivers/media/i2c/ov5647.c
26 +++ b/drivers/media/i2c/ov5647.c
27 @@ -669,8 +669,8 @@ static struct ov5647_mode supported_mode
31 -/* Use original 8-bit VGA mode as default. */
32 -#define OV5647_DEFAULT_MODE (&supported_modes_8bit[0])
33 +/* Use 2x2 binned 10-bit mode as default. */
34 +#define OV5647_DEFAULT_MODE (&supported_modes_10bit[2])
36 static int ov5647_write(struct v4l2_subdev *sd, u16 reg, u8 val)
38 @@ -1367,18 +1367,18 @@ static int ov5647_probe(struct i2c_clien
44 v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops,
45 V4L2_CID_AUTO_WHITE_BALANCE,
51 v4l2_ctrl_new_std_menu(&sensor->ctrls, &ov5647_ctrl_ops,
52 V4L2_CID_EXPOSURE_AUTO,
53 V4L2_EXPOSURE_MANUAL, /* max */
55 - V4L2_EXPOSURE_AUTO); /* default */
56 + V4L2_EXPOSURE_MANUAL); /* default */
57 ctrl = v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops,