From 4708dc1999ed4857799100434e4f46f68f4e7c13 Mon Sep 17 00:00:00 2001 From: "guoyin.chen" Date: Fri, 7 Dec 2012 10:39:57 +0800 Subject: 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 --- drivers/media/video/mxc/capture/ipu_csi_enc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/video/mxc/capture/ipu_csi_enc.c b/drivers/media/video/mxc/capture/ipu_csi_enc.c index fc5a5a969ca8..b0919106a9bf 100644 --- a/drivers/media/video/mxc/capture/ipu_csi_enc.c +++ b/drivers/media/video/mxc/capture/ipu_csi_enc.c @@ -169,7 +169,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, cam->rotation, + cam->v2f.fmt.pix.bytesperline, + cam->rotation, dummy, dummy, 0, cam->offset.u_offset, cam->offset.v_offset); -- cgit v1.2.3