mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-17 09:16:59 +08:00

These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From 5a3e06211276869a75bc0a76aa6802ffe94811c3 Mon Sep 17 00:00:00 2001
|
|
From: Naushir Patuck <naush@raspberrypi.com>
|
|
Date: Thu, 16 Mar 2023 09:29:41 +0000
|
|
Subject: [PATCH] media: i2c: imx296: Adjust cropping limits
|
|
|
|
Through emperical testing, the sensor can crop upto a 96x88 window to
|
|
produce a valid Bayer frame. Adjust the ROIWH1_MIN ROIWV1_MIN
|
|
appropriately for this limit.
|
|
|
|
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
|
---
|
|
drivers/media/i2c/imx296.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/media/i2c/imx296.c
|
|
+++ b/drivers/media/i2c/imx296.c
|
|
@@ -154,9 +154,9 @@ MODULE_PARM_DESC(trigger_mode, "Set trig
|
|
#define IMX296_FID0_ROIPH1 IMX296_REG_16BIT(0x3310)
|
|
#define IMX296_FID0_ROIPV1 IMX296_REG_16BIT(0x3312)
|
|
#define IMX296_FID0_ROIWH1 IMX296_REG_16BIT(0x3314)
|
|
-#define IMX296_FID0_ROIWH1_MIN 80
|
|
+#define IMX296_FID0_ROIWH1_MIN 96
|
|
#define IMX296_FID0_ROIWV1 IMX296_REG_16BIT(0x3316)
|
|
-#define IMX296_FID0_ROIWV1_MIN 4
|
|
+#define IMX296_FID0_ROIWV1_MIN 88
|
|
|
|
#define IMX296_CM_HSST_STARTTMG IMX296_REG_16BIT(0x4018)
|
|
#define IMX296_CM_HSST_ENDTMG IMX296_REG_16BIT(0x401a)
|