Skip to content

Commit 5fa26d9

Browse files
Alain Volmatkartben
authored andcommitted
video: gc2145: use VGA resolution as default
Since QVGA resolution is currently not working in CSI, use VGA as default resolution to avoid failing during the init of the driver. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent 79e218a commit 5fa26d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/video/gc2145.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,10 +1385,10 @@ static int gc2145_init(const struct device *dev)
13851385
gc2145_soft_reset(dev);
13861386
gc2145_write_all(dev, default_regs, ARRAY_SIZE(default_regs));
13871387

1388-
/* set default/init format QVGA RGB565 */
1388+
/* set default/init format VGA RGB565 */
13891389
fmt.pixelformat = VIDEO_PIX_FMT_RGB565;
1390-
fmt.width = RESOLUTION_QVGA_W;
1391-
fmt.height = RESOLUTION_QVGA_H;
1390+
fmt.width = RESOLUTION_VGA_W;
1391+
fmt.height = RESOLUTION_VGA_H;
13921392

13931393
ret = gc2145_set_fmt(dev, &fmt);
13941394
if (ret) {

0 commit comments

Comments
 (0)