Skip to content

Commit 9c5a7f0

Browse files
Lee Jacksonpelwell
authored andcommitted
media: i2c: arducam_64mp: Modify the line length of 1280x720 resolution
Arducam 64MP has specific requirements for the line length, and if these conditions are not met, the camera will not function properly. Under the previous configuration, once a stream off operation is performed, the camera will not output any data, even if a stream on operation is performed. This prevents us from switching from 1280x720 to another resolution. Signed-off-by: Lee Jackson <[email protected]>
1 parent 3f38871 commit 9c5a7f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/media/i2c/arducam_64mp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,10 +1063,10 @@ static const struct arducam_64mp_reg mode_1920x1080_regs[] = {
10631063

10641064
/* 720p 120fps mode */
10651065
static const struct arducam_64mp_reg mode_1280x720_regs[] = {
1066-
{0x0342, 0x1d},
1067-
{0x0343, 0xc4},
1068-
{0x0340, 0x03},
1069-
{0x0341, 0xd8},
1066+
{0x0342, 0x1b},
1067+
{0x0343, 0x08},
1068+
{0x0340, 0x04},
1069+
{0x0341, 0x3b},
10701070
{0x0344, 0x08},
10711071
{0x0345, 0x10},
10721072
{0x0346, 0x07},
@@ -1209,7 +1209,7 @@ static const struct arducam_64mp_mode supported_modes[] = {
12091209
}, {
12101210
.width = 1280,
12111211
.height = 720,
1212-
.line_length_pix = 0x1dc4,
1212+
.line_length_pix = 0x1b08,
12131213
.crop = {
12141214
.left = ARDUCAM_64MP_PIXEL_ARRAY_LEFT + 2064,
12151215
.top = ARDUCAM_64MP_PIXEL_ARRAY_TOP + 2032,

0 commit comments

Comments
 (0)