0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-22 04:56:15 +00:00
openwrt/target/linux/bcm27xx/patches-6.6/950-0691-drivers-media-imx477-Disable-the-scaler.patch
Álvaro Fernández Rojas 8c405cdccc bcm27xx: add 6.6 kernel patches
The patches were generated from the RPi repo with the following command:
git format-patch v6.6.34..rpi-6.1.y

Some patches needed rebasing and, as usual, the applied and reverted, wireless
drivers, Github workflows, READMEs and defconfigs patches were removed.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-06-18 18:52:49 +02:00

36 lines
1.1 KiB
Diff

From 4f77ce9e83e7482f0b919f17f2abb36cd96c7727 Mon Sep 17 00:00:00 2001
From: Naushir Patuck <naush@raspberrypi.com>
Date: Mon, 23 Oct 2023 10:03:03 +0100
Subject: [PATCH 0691/1085] drivers: media: imx477: Disable the scaler
The horizontal scaler was enabled for the 2028x1520 and 2028x1080 modes,
with a scale factor of 1. It caused a single column of bad pixels on the
right edge of the image. Since scaling is not needed for these modes,
disable it entirely.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
---
drivers/media/i2c/imx477.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/media/i2c/imx477.c
+++ b/drivers/media/i2c/imx477.c
@@ -632,7 +632,7 @@ static const struct imx477_reg mode_2028
{0x9e9f, 0x00},
{0xa2a9, 0x60},
{0xa2b7, 0x00},
- {0x0401, 0x01},
+ {0x0401, 0x00},
{0x0404, 0x00},
{0x0405, 0x20},
{0x0408, 0x00},
@@ -733,7 +733,7 @@ static const struct imx477_reg mode_2028
{0x9e9f, 0x00},
{0xa2a9, 0x60},
{0xa2b7, 0x00},
- {0x0401, 0x01},
+ {0x0401, 0x00},
{0x0404, 0x00},
{0x0405, 0x20},
{0x0408, 0x00},