bcm27xx: update 6.1 patches to latest version
[openwrt/staging/svanheule.git] / target / linux / bcm27xx / patches-6.1 / 950-0800-media-i2c-arducam_64mp-Modify-the-line-length-of-128.patch
1 From 9c5a7f04cab6b020389d7c5af155b1ee7f46537d Mon Sep 17 00:00:00 2001
2 From: Lee Jackson <lee.jackson@arducam.com>
3 Date: Thu, 4 May 2023 11:14:04 +0800
4 Subject: [PATCH] media: i2c: arducam_64mp: Modify the line length of 1280x720
5 resolution
6
7 Arducam 64MP has specific requirements for the line length, and if these
8 conditions are not met, the camera will not function properly. Under the
9 previous configuration, once a stream off operation is performed, the
10 camera will not output any data, even if a stream on operation is
11 performed. This prevents us from switching from 1280x720 to another
12 resolution.
13
14 Signed-off-by: Lee Jackson <lee.jackson@arducam.com>
15 ---
16 drivers/media/i2c/arducam_64mp.c | 10 +++++-----
17 1 file changed, 5 insertions(+), 5 deletions(-)
18
19 --- a/drivers/media/i2c/arducam_64mp.c
20 +++ b/drivers/media/i2c/arducam_64mp.c
21 @@ -1063,10 +1063,10 @@ static const struct arducam_64mp_reg mod
22
23 /* 720p 120fps mode */
24 static const struct arducam_64mp_reg mode_1280x720_regs[] = {
25 - {0x0342, 0x1d},
26 - {0x0343, 0xc4},
27 - {0x0340, 0x03},
28 - {0x0341, 0xd8},
29 + {0x0342, 0x1b},
30 + {0x0343, 0x08},
31 + {0x0340, 0x04},
32 + {0x0341, 0x3b},
33 {0x0344, 0x08},
34 {0x0345, 0x10},
35 {0x0346, 0x07},
36 @@ -1209,7 +1209,7 @@ static const struct arducam_64mp_mode su
37 }, {
38 .width = 1280,
39 .height = 720,
40 - .line_length_pix = 0x1dc4,
41 + .line_length_pix = 0x1b08,
42 .crop = {
43 .left = ARDUCAM_64MP_PIXEL_ARRAY_LEFT + 2064,
44 .top = ARDUCAM_64MP_PIXEL_ARRAY_TOP + 2032,