mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add a directory by kernel instead of a common root, add qnap-301w and rpi4 kernel 6.1 suppport
This commit is contained in:
parent
e910436a7a
commit
46837ec4c0
9459 changed files with 362648 additions and 116345 deletions
|
|
@ -0,0 +1,40 @@
|
|||
From 9260702c0d83dfb55073e7e39cd5241f6095abf2 Mon Sep 17 00:00:00 2001
|
||||
From: Naushir Patuck <naush@raspberrypi.com>
|
||||
Date: Tue, 14 Mar 2023 10:10:01 +0000
|
||||
Subject: [PATCH 625/726] media: i2c: imx296: Get sensor crop working
|
||||
|
||||
Add a missing register write (MIPIC_AREA3W) when setting up a crop
|
||||
window in the sensor to get this functionality working.
|
||||
|
||||
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
||||
---
|
||||
drivers/media/i2c/imx296.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/drivers/media/i2c/imx296.c b/drivers/media/i2c/imx296.c
|
||||
index 3c12b6edeac9..a5358c3743b7 100644
|
||||
--- a/drivers/media/i2c/imx296.c
|
||||
+++ b/drivers/media/i2c/imx296.c
|
||||
@@ -171,6 +171,7 @@
|
||||
#define IMX296_CKREQSEL IMX296_REG_8BIT(0x4101)
|
||||
#define IMX296_CKREQSEL_HS BIT(2)
|
||||
#define IMX296_GTTABLENUM IMX296_REG_8BIT(0x4114)
|
||||
+#define IMX296_MIPIC_AREA3W IMX296_REG_16BIT(0x4182)
|
||||
#define IMX296_CTRL418C IMX296_REG_8BIT(0x418c)
|
||||
|
||||
struct imx296_clk_params {
|
||||
@@ -526,8 +527,11 @@ static int imx296_setup(struct imx296 *sensor, struct v4l2_subdev_state *state)
|
||||
imx296_write(sensor, IMX296_FID0_ROIPV1, crop->top, &ret);
|
||||
imx296_write(sensor, IMX296_FID0_ROIWH1, crop->width, &ret);
|
||||
imx296_write(sensor, IMX296_FID0_ROIWV1, crop->height, &ret);
|
||||
+ imx296_write(sensor, IMX296_MIPIC_AREA3W, crop->height, &ret);
|
||||
} else {
|
||||
imx296_write(sensor, IMX296_FID0_ROI, 0, &ret);
|
||||
+ imx296_write(sensor, IMX296_MIPIC_AREA3W,
|
||||
+ IMX296_PIXEL_ARRAY_HEIGHT, &ret);
|
||||
}
|
||||
|
||||
imx296_write(sensor, IMX296_CTRL0D,
|
||||
--
|
||||
2.33.1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue