media: i2c: Correct format propagation for st-mipid02
authorDaniel Scally <dan.scally@ideasonboard.com>
Tue, 2 May 2023 10:35:46 +0000 (11:35 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:23 +0000 (16:21 +0200)
commit306c3190b30d4d6a098888b9d7d4cefaa0ddcb91
tree639790db18df5ef328934098facf0e73a022543e
parentad5929547b545f6335f7a65cd5dd978967a02be3
media: i2c: Correct format propagation for st-mipid02

Format propagation in the st-mipid02 driver is incorrect in that when
setting format for V4L2_SUBDEV_FORMAT_TRY on the source pad, the
_active_ rather than _try_ format from the sink pad is propagated.
This causes problems with format negotiation - update the function to
propagate the correct format.

Fixes: 642bb5e88fed ("media: st-mipid02: MIPID02 CSI-2 to PARALLEL bridge driver")
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/st-mipid02.c