media: starfive: Add set fmt for all ISP pads
authorliuxl0327 <liuxl0327@starfivetech.com>
Fri, 20 May 2022 02:37:55 +0000 (10:37 +0800)
committermason.huo <mason.huo@starfivetech.com>
Fri, 1 Jul 2022 07:05:38 +0000 (15:05 +0800)
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
drivers/media/platform/starfive/v4l2_driver/stf_video.c

index a8b087b..117c06c 100644 (file)
@@ -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)) {