media: i2c: imx334: add missing reset values for mode 3840x2160_regs[]
authorShravan Chippa <shravan.chippa@microchip.com>
Wed, 1 Mar 2023 07:34:09 +0000 (08:34 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Mar 2023 15:23:27 +0000 (16:23 +0100)
commit5ca5515ab16ab12c4194101d91c4c3c3cf179528
tree5f789c4a9258ccae50de0c0f3892b97078262a91
parentd6e34091ad77e738abd20ea11079bfecdd5c6f7d
media: i2c: imx334: add missing reset values for mode 3840x2160_regs[]

There are some missing reset reg_mode values for the 3840x2160@60
resolution. The camera sensor still works in 3840x2160@60 resolution mode
because of the register reset values. This is an issue when we change the
modes dynamically. As an example, when we change the mode from 1920x1080@30
 resolution to 3840x2160@60 resoultion then the mode values will be written
to the registers from the array mode_3840x2160_regs[] which gives the wrong
output which is incorrect resolution.

So add the missing reset values to the mode_3840x2160_regs[].

Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Shravan Chippa <shravan.chippa@microchip.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/imx334.c