1 From d2a776c4d38ccf0435083a90f51ed8886dd7aac9 Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Tue, 25 Jan 2022 15:48:53 +0000
4 Subject: [PATCH] media: i2c: imx219: Correct the minimum vblanking value
6 The datasheet for this sensor documents the minimum vblanking as being
7 32 lines. It does fix some problems with occasional black lines at the
8 bottom of images (tested on Raspberry Pi).
10 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
12 drivers/media/i2c/imx219.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 --- a/drivers/media/i2c/imx219.c
16 +++ b/drivers/media/i2c/imx219.c
18 #define IMX219_REG_VTS CCI_REG16(0x0160)
19 #define IMX219_VTS_MAX 0xffff
21 -#define IMX219_VBLANK_MIN 4
22 +#define IMX219_VBLANK_MIN 32
24 /* HBLANK control - read only */
25 #define IMX219_PPL_DEFAULT 3448