aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Foss <robert.foss@linaro.org>2021-01-08 17:26:53 +0100
committerRobert Foss <robert.foss@linaro.org>2021-01-20 13:04:16 +0100
commit4363e8f43692eff8f82dec6e9df0c43d2c92a381 (patch)
treecf102c899558473a2c06b85a77aca350c3f4fb0f
parent09162bc32c880a791c6c0668ce0745cf7958f576 (diff)
media: ov8856: Configure sensor for GRBG Bayer for all modestracking-qcomlt-ov8856-bayer-mode
The previously added modes 3264x2448 & 1632x1224 are actually configuring the sensor for BGGR mode, this is an issue since the mode that is exposed through V4L incorrectly is set as GRBG. This patch fixes the issue by moving the output crop window of internal sensor ISP uses by one row, which means that the Bayer pattern of the output is changed. From: row 1: B G B G B G ... row 2: G R G R G R ... row 3: B G B G B G ... ... To: row 2: G R G R G R ... row 3: B G B G B G ... ... Signed-off-by: Robert Foss <robert.foss@linaro.org> Suggested-by: Andrey Konovalov <andrey.konovalov@linaro.org> Reviewed-by: Andrey Konovalov <andrey.konovalov@linaro.org>
-rw-r--r--drivers/media/i2c/ov8856.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/ov8856.c b/drivers/media/i2c/ov8856.c
index 2f4ceaa80593..8a355135c7db 100644
--- a/drivers/media/i2c/ov8856.c
+++ b/drivers/media/i2c/ov8856.c
@@ -428,7 +428,7 @@ static const struct ov8856_reg mode_3264x2448_regs[] = {
{0x3810, 0x00},
{0x3811, 0x04},
{0x3812, 0x00},
- {0x3813, 0x02},
+ {0x3813, 0x01},
{0x3814, 0x01},
{0x3815, 0x01},
{0x3816, 0x00},
@@ -821,7 +821,7 @@ static const struct ov8856_reg mode_1632x1224_regs[] = {
{0x3810, 0x00},
{0x3811, 0x02},
{0x3812, 0x00},
- {0x3813, 0x02},
+ {0x3813, 0x01},
{0x3814, 0x03},
{0x3815, 0x01},
{0x3816, 0x00},