From 4f7d92a31dc1a8cc5415f49b46eeee6874b66496 Mon Sep 17 00:00:00 2001 From: liuxl0327 Date: Fri, 20 May 2022 10:37:55 +0800 Subject: [PATCH] media: starfive: Add set fmt for all ISP pads Signed-off-by: mason.huo --- drivers/media/platform/starfive/v4l2_driver/stf_video.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/media/platform/starfive/v4l2_driver/stf_video.c b/drivers/media/platform/starfive/v4l2_driver/stf_video.c index a8b087b..117c06c 100644 --- a/drivers/media/platform/starfive/v4l2_driver/stf_video.c +++ b/drivers/media/platform/starfive/v4l2_driver/stf_video.c @@ -870,7 +870,6 @@ static int video_entity_s_fmt(struct stfcamss_video *video, struct v4l2_mbus_framefmt *mf = &fmt->format; u32 width, height, code; int ret, index = 0; - int padid = getcrop_pad_id(video->id); code = mf->code; width = mf->width; @@ -879,11 +878,6 @@ static int video_entity_s_fmt(struct stfcamss_video *video, while (1) { if (index >= entity->num_pads) break; - if (index != 0 && !strncmp(subdev->name, "stf_isp", 7) - && (index != padid) && (index != STF_ISP_PAD_SRC_RAW)) { - index++; - continue; - } pad = &entity->pads[index]; pad = media_entity_remote_pad(pad); if (pad && is_media_entity_v4l2_subdev(pad->entity)) { -- 2.7.4