From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/media/i2c/imx577.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/kernel/drivers/media/i2c/imx577.c b/kernel/drivers/media/i2c/imx577.c
index b1567c2..0658f46 100644
--- a/kernel/drivers/media/i2c/imx577.c
+++ b/kernel/drivers/media/i2c/imx577.c
@@ -62,7 +62,7 @@
#define IMX577_REG_EXPOSURE_H 0x0202
#define IMX577_REG_EXPOSURE_L 0x0203
-#define IMX577_EXPOSURE_MIN 4
+#define IMX577_EXPOSURE_MIN 8
#define IMX577_EXPOSURE_STEP 1
#define IMX577_VTS_MAX 0xffff
@@ -971,7 +971,7 @@
.numerator = 10000,
.denominator = 300000,
},
- .exp_def = 0x0c10,
+ .exp_def = 0x0c08,
.hts_def = 0x11a0,
.vts_def = 0x0c1e,
.bpp = 10,
@@ -991,7 +991,7 @@
.numerator = 10000,
.denominator = 600000,
},
- .exp_def = 0x0c10,
+ .exp_def = 0x0c08,
.hts_def = 0x11a0,
.vts_def = 0x0c1e,
.bpp = 10,
@@ -2031,7 +2031,7 @@
case V4L2_CID_VBLANK:
if (imx577->cur_mode->hdr_mode == NO_HDR) {
/* Update max exposure while meeting expected vblanking */
- max = imx577->cur_mode->height + ctrl->val - 4;
+ max = imx577->cur_mode->height + ctrl->val - 22;
__v4l2_ctrl_modify_range(imx577->exposure,
imx577->exposure->minimum, max,
imx577->exposure->step,
@@ -2195,7 +2195,7 @@
IMX577_VTS_MAX - mode->height,
1, vblank_def);
imx577->cur_vts = mode->vts_def;
- exposure_max = mode->vts_def - 4;
+ exposure_max = mode->vts_def - 22;
imx577->exposure = v4l2_ctrl_new_std(handler, &imx577_ctrl_ops,
V4L2_CID_EXPOSURE, IMX577_EXPOSURE_MIN,
exposure_max, IMX577_EXPOSURE_STEP,
--
Gitblit v1.6.2