Skip to content

Commit 8425649

Browse files
author
Alain Volmat
committed
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 4932c5b commit 8425649

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/video/gc2145.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,11 +1381,11 @@ static int gc2145_init(const struct device *dev)
13811381
gc2145_soft_reset(dev);
13821382
gc2145_write_all(dev, default_regs, ARRAY_SIZE(default_regs));
13831383

1384-
/* set default/init format QVGA RGB565 */
1384+
/* set default/init format VGA RGB565 */
13851385
fmt.pixelformat = VIDEO_PIX_FMT_RGB565;
1386-
fmt.width = RESOLUTION_QVGA_W;
1387-
fmt.height = RESOLUTION_QVGA_H;
1388-
fmt.pitch = RESOLUTION_QVGA_W * 2;
1386+
fmt.width = RESOLUTION_VGA_W;
1387+
fmt.height = RESOLUTION_VGA_H;
1388+
fmt.pitch = RESOLUTION_VGA_W * 2;
13891389

13901390
ret = gc2145_set_fmt(dev, VIDEO_EP_OUT, &fmt);
13911391
if (ret) {

0 commit comments

Comments
 (0)