struct imx_media_video_dev *vdev = csi->vdev;
const struct v4l2_pix_format *out_pix = &vdev->fmt;
struct media_pad *pad;
- bool is_csi2;
int ret;
if (!csi->src_sd)
switch (csi->src_sd->entity.function) {
case MEDIA_ENT_F_VID_IF_BRIDGE:
/* The input is the CSI-2 receiver. */
- is_csi2 = true;
+ csi->is_csi2 = true;
break;
case MEDIA_ENT_F_VID_MUX:
if (!pad)
return -ENODEV;
- is_csi2 = pad->entity->function == MEDIA_ENT_F_VID_IF_BRIDGE;
+ csi->is_csi2 = pad->entity->function == MEDIA_ENT_F_VID_IF_BRIDGE;
break;
default:
* The input is an external entity, it must use the parallel
* bus.
*/
- is_csi2 = false;
+ csi->is_csi2 = false;
break;
}
- mutex_lock(&csi->lock);
- csi->is_csi2 = is_csi2;
- mutex_unlock(&csi->lock);
-
/* Validate the sink link, ensure the pixel format is supported. */
switch (out_pix->pixelformat) {
case V4L2_PIX_FMT_UYVY: