[11/15] media: soc_camera: soc_scale_crop: Use correct pad number in try_fmt
Commit Message
From: Rob Taylor <rob.taylor@codethink.co.uk>
Fix calls to subdev try_fmt function to use valid pad numbers, fixing
the case where subdevs (eg. ADV7612) have valid pad numbers that are
non-zero.
Signed-off-by: William Towle <william.towle@codethink.co.uk>
Reviewed-by: Rob Taylor <rob.taylor@codethink.co.uk>
---
drivers/media/platform/soc_camera/soc_scale_crop.c | 1 +
1 file changed, 1 insertion(+)
@@ -225,6 +225,7 @@ static int client_set_fmt(struct soc_camera_device *icd,
bool host_1to1;
int ret;
+ format->pad = icd->src_pad_idx;
ret = v4l2_device_call_until_err(sd->v4l2_dev,
soc_camera_grp_id(icd), pad,
set_fmt, NULL, format);