Skip to content

Commit

Permalink
drivers: media: imx477: Set horizontal binning when disabling the scaler
Browse files Browse the repository at this point in the history
The horizontal scaler has been disabled but actually the sensor is not
binning horizontally, resulting in images that are stretched 2x
horizontally (missing the right half of the field of view completely).

Therefore we must additionally set the horizontal binning mode. There
is only marginal change in output quality and noise levels.

Signed-off-by: David Plowman <[email protected]>
Fixes: f075893 ("drivers: media: imx477: Disable the scaler")
  • Loading branch information
davidplowman authored and naushir committed Oct 30, 2023
1 parent cb013b6 commit 8dcc16f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/i2c/imx477.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ static const struct imx477_reg mode_2028x1520_regs[] = {
{0x0385, 0x01},
{0x0387, 0x01},
{0x0900, 0x01},
{0x0901, 0x12},
{0x0901, 0x22},
{0x0902, 0x02},
{0x3140, 0x02},
{0x3c00, 0x00},
Expand Down Expand Up @@ -708,7 +708,7 @@ static const struct imx477_reg mode_2028x1080_regs[] = {
{0x0385, 0x01},
{0x0387, 0x01},
{0x0900, 0x01},
{0x0901, 0x12},
{0x0901, 0x22},
{0x0902, 0x02},
{0x3140, 0x02},
{0x3c00, 0x00},
Expand Down

0 comments on commit 8dcc16f

Please sign in to comment.