Skip to content

Commit c561479

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 31a4c99 commit c561479

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
@@ -1371,11 +1371,11 @@ static int gc2145_init(const struct device *dev)
13711371
gc2145_soft_reset(dev);
13721372
gc2145_write_all(dev, default_regs, ARRAY_SIZE(default_regs));
13731373

1374-
/* set default/init format QVGA RGB565 */
1374+
/* set default/init format VGA RGB565 */
13751375
fmt.pixelformat = VIDEO_PIX_FMT_RGB565;
1376-
fmt.width = RESOLUTION_QVGA_W;
1377-
fmt.height = RESOLUTION_QVGA_H;
1378-
fmt.pitch = RESOLUTION_QVGA_W * 2;
1376+
fmt.width = RESOLUTION_VGA_W;
1377+
fmt.height = RESOLUTION_VGA_H;
1378+
fmt.pitch = RESOLUTION_VGA_W * 2;
13791379

13801380
ret = gc2145_set_fmt(dev, VIDEO_EP_OUT, &fmt);
13811381
if (ret) {

0 commit comments

Comments
 (0)