{
        struct vicodec_ctx *ctx = file2ctx(file);
        struct vicodec_q_data *q_data;
-       enum v4l2_buf_type valid_cap_type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
-       enum v4l2_buf_type valid_out_type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
-
-       if (multiplanar) {
-               valid_cap_type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
-               valid_out_type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
-       }
-
-       if (s->type != valid_cap_type && s->type != valid_out_type)
-               return -EINVAL;
 
        q_data = get_q_data(ctx, s->type);
        if (!q_data)
         * encoder supports only cropping on the OUTPUT buffer
         * decoder supports only composing on the CAPTURE buffer
         */
-       if ((ctx->is_enc && s->type == valid_out_type) ||
-           (!ctx->is_enc && s->type == valid_cap_type)) {
+       if ((ctx->is_enc && s->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) ||
+           (!ctx->is_enc && s->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)) {
                switch (s->target) {
                case V4L2_SEL_TGT_COMPOSE:
                case V4L2_SEL_TGT_CROP:
 {
        struct vicodec_ctx *ctx = file2ctx(file);
        struct vicodec_q_data *q_data;
-       enum v4l2_buf_type out_type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
-
-       if (multiplanar)
-               out_type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
 
-       if (s->type != out_type)
+       if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
                return -EINVAL;
 
        q_data = get_q_data(ctx, s->type);