Revert "[HACK][COMMON] fimc-is2: featured size check between per-frame and s_fmt...
authorJaehyoung Choi <jkkkkk.choi@samsung.com>
Mon, 30 Jul 2018 05:45:38 +0000 (14:45 +0900)
committerJaehyoung Choi <jkkkkk.choi@samsung.com>
Mon, 30 Jul 2018 09:18:34 +0000 (18:18 +0900)
This reverts commit 3f6dd326a2c22bc461a987b0d05c44ca40bb9b9a.

Change-Id: Iaa9f81d4cc252d3e697dd7293325ce68feac435a

drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c

index b381b77bfb0e21584d329cd180aadbe4f1754250..81cf6ed61eb8db7d9e345a78c84e568f40e8b6aa 100644 (file)
@@ -171,7 +171,6 @@ static int fimc_is_gframe_check(struct fimc_is_group *gprev,
 
        device = group->device;
 
-#ifndef DISABLE_CHECK_PERFRAME_FMT_SIZE
        /*
         * perframe check
         * 1. perframe size can't exceed s_format size
@@ -186,7 +185,6 @@ static int fimc_is_gframe_check(struct fimc_is_group *gprev,
                frame->shot_ext->node_group.leader.input.cropRegion[2] = incrop->w;
                frame->shot_ext->node_group.leader.input.cropRegion[3] = incrop->h;
        }
-#endif
 
        for (capture_id = 0; capture_id < CAPTURE_NODE_MAX; ++capture_id) {
                node = &gframe->group_cfg[group->slot].capture[capture_id];
@@ -203,7 +201,6 @@ static int fimc_is_gframe_check(struct fimc_is_group *gprev,
                        goto p_err;
                }
 
-#ifndef DISABLE_CHECK_PERFRAME_FMT_SIZE
                if ((otcrop->w * otcrop->h) > (subdev->output.width * subdev->output.height)) {
                        mrwarn("[V%d][req:%d] the output size is invalid(perframe:%dx%d > subdev:%dx%d)", group, gframe,
                                node->vid, node->request,
@@ -213,7 +210,7 @@ static int fimc_is_gframe_check(struct fimc_is_group *gprev,
                        frame->shot_ext->node_group.capture[capture_id].output.cropRegion[2] = otcrop->w;
                        frame->shot_ext->node_group.capture[capture_id].output.cropRegion[3] = otcrop->h;
                }
-#endif
+
                subdev->cid = capture_id;
        }