Skip to content

Commit e065356

Browse files
committed
drivers: video: mcux_csi: Don't set_format() in get_format()
Do not set_format() when doing get_format(). This design seems initially to simplify the sample (just get_format() and everything works out of the box) but it makes thing incomprehensive and error prone. Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
1 parent 78e6214 commit e065356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/video_mcux_csi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ static int video_mcux_csi_get_fmt(const struct device *dev, enum video_endpoint_
190190
#if defined(CONFIG_VIDEO_MCUX_MIPI_CSI2RX)
191191
video_pix_fmt_convert(fmt, true);
192192
#endif
193-
/* align CSI with source fmt */
194-
return video_mcux_csi_set_fmt(dev, ep, fmt);
193+
194+
return 0;
195195
}
196196

197197
return -EIO;

0 commit comments

Comments
 (0)