]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00211368:dual camera: fix csi 1 camera has wrong image issue
authorWu Guoxing <b39297@freescale.com>
Tue, 29 May 2012 07:22:25 +0000 (15:22 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:44 +0000 (08:34 +0200)
set the correct csi interface

Signed-off-by: Wu Guoxing <b39297@freescale.com>
drivers/media/video/mxc/capture/mxc_v4l2_capture.c

index d80b8426aabe91e830e2d6ec470abd23f68cf379..dcfc86800940cace78d8639ff1b258bd99f997c5 100644 (file)
@@ -1313,7 +1313,7 @@ static int mxc_v4l2_s_param(cam_data *cam, struct v4l2_streamparm *parm)
        csi_param.force_eof = 0;
        csi_param.data_en_pol = 0;
        csi_param.data_fmt = 0;
-       csi_param.csi = 0;
+       csi_param.csi = cam->csi;
        csi_param.mclk = 0;
 
        /*This may not work on other platforms. Check when adding a new one.*/
@@ -1600,9 +1600,6 @@ static int mxc_v4l_open(struct file *file)
 
                csi_param.pixclk_pol = ifparm.u.bt656.latch_clk_inv;
 
-               /* Once we handle multiple inputs this will need to change. */
-               csi_param.csi = 0;
-
                if (ifparm.u.bt656.mode
                                == V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT)
                        csi_param.data_width = IPU_CSI_DATA_WIDTH_8;