From: guoyin.chen Date: Fri, 7 Dec 2012 02:39:57 +0000 (+0800) Subject: ENGR00236141 csi:Add stride alignment setting from userspace X-Git-Tag: v3.0.35-fsl~183 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8028d925a689f20639c533a53767050baf8df15c;p=karo-tx-linux.git ENGR00236141 csi:Add stride alignment setting from userspace In android, IPU fills the I420 buffer. And GPU shows the buffer to display. mx6's GPU has 32 Y-stride alignment for I420. The stride alignment will be passed through by bytesperline. This update is only for csi->smfc->mem channel. Signed-off-by: guoyin.chen (cherry picked from commit 4708dc1999ed4857799100434e4f46f68f4e7c13) --- diff --git a/drivers/media/video/mxc/capture/ipu_csi_enc.c b/drivers/media/video/mxc/capture/ipu_csi_enc.c index 2c8d8d01a971..ff90e2b8eff4 100644 --- a/drivers/media/video/mxc/capture/ipu_csi_enc.c +++ b/drivers/media/video/mxc/capture/ipu_csi_enc.c @@ -171,7 +171,8 @@ static int csi_enc_setup(cam_data *cam) err = ipu_init_channel_buffer(cam->ipu, CSI_MEM, IPU_OUTPUT_BUFFER, pixel_fmt, cam->v2f.fmt.pix.width, cam->v2f.fmt.pix.height, - cam->v2f.fmt.pix.width, IPU_ROTATE_NONE, + cam->v2f.fmt.pix.bytesperline, + IPU_ROTATE_NONE, dummy, dummy, 0, cam->offset.u_offset, cam->offset.v_offset);