[PATCH 2/2] media: mira016: Update 8-bit gain init sequences
From: Jacopo Mondi
Date: Tue Nov 24 2026 - 11:51:52 EST
From: Philippe Baetens <philippebaetens@xxxxxxxxx>
Slightly adjust the 8-bits mode gain init sequence.
Register 0xe024 controls the additional digital gain only available in
8-bits mode. Initialize it to the unit 1x value.
Also adjut the 0x005d register that controls the desired black level
pedestal to the 8-bits default value of 0x06.
Signed-off-by: Philippe Baetens <philippebaetens@xxxxxxxxx>
Signed-off-by: Jacopo Mondi <jacopo.mondi@xxxxxxxxxxxxxxxx>
---
drivers/media/i2c/mira016.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/mira016.c b/drivers/media/i2c/mira016.c
index cecef53d8af0..a3396b411746 100644
--- a/drivers/media/i2c/mira016.c
+++ b/drivers/media/i2c/mira016.c
@@ -323,10 +323,10 @@ static const struct cci_reg_sequence mira016_8b_fine_gain_init[] = {
{ CCI_REG8(0x01f0), 0x24 },
{ CCI_REG8(0x01f3), 0x2 },
{ CCI_REG8(0xe000), 0x1 },
- { CCI_REG8(0xe024), 0x3 },
+ { CCI_REG8(0xe024), 0xf },
{ CCI_REG8(0xe000), 0x0 },
{ CCI_REG8(0x005c), 0x0 },
- { CCI_REG8(0x005d), 0x18 },
+ { CCI_REG8(0x005d), 0x6 },
};
static const struct cci_reg_sequence mira016_10b_fine_gain_init[] = {
--
2.56.0