W_ALIGN, &sdformat->format.height,
                                      MIN_H, MAX_H, H_ALIGN, S_ALIGN);
 
-               /* Reset crop and compose rectangles */
-               crop->left = 0;
-               crop->top = 0;
-               crop->width = sdformat->format.width;
-               crop->height = sdformat->format.height;
-               if (sdformat->format.field == V4L2_FIELD_ALTERNATE)
-                       crop->height *= 2;
-               csi_try_crop(priv, crop, cfg, &sdformat->format, upstream_ep);
-               compose->left = 0;
-               compose->top = 0;
-               compose->width = crop->width;
-               compose->height = crop->height;
-
                *cc = imx_media_find_mbus_format(sdformat->format.code,
                                                 CS_SEL_ANY, true);
                if (!*cc) {
                imx_media_fill_default_mbus_fields(
                        &sdformat->format, infmt,
                        priv->active_output_pad == CSI_SRC_PAD_DIRECT);
+
+               /* Reset crop and compose rectangles */
+               crop->left = 0;
+               crop->top = 0;
+               crop->width = sdformat->format.width;
+               crop->height = sdformat->format.height;
+               if (sdformat->format.field == V4L2_FIELD_ALTERNATE)
+                       crop->height *= 2;
+               csi_try_crop(priv, crop, cfg, &sdformat->format, upstream_ep);
+               compose->left = 0;
+               compose->top = 0;
+               compose->width = crop->width;
+               compose->height = crop->height;
+
                break;
        }
 }