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>
This commit is contained in:
parent
79e218aaf4
commit
5fa26d9aea
@ -1385,10 +1385,10 @@ static int gc2145_init(const struct device *dev)
|
||||
gc2145_soft_reset(dev);
|
||||
gc2145_write_all(dev, default_regs, ARRAY_SIZE(default_regs));
|
||||
|
||||
/* set default/init format QVGA RGB565 */
|
||||
/* set default/init format VGA RGB565 */
|
||||
fmt.pixelformat = VIDEO_PIX_FMT_RGB565;
|
||||
fmt.width = RESOLUTION_QVGA_W;
|
||||
fmt.height = RESOLUTION_QVGA_H;
|
||||
fmt.width = RESOLUTION_VGA_W;
|
||||
fmt.height = RESOLUTION_VGA_H;
|
||||
|
||||
ret = gc2145_set_fmt(dev, &fmt);
|
||||
if (ret) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user