summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguoyin.chen <guoyin.chen@freescale.com>2012-12-07 10:39:57 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2012-12-07 13:51:27 +0800
commit4708dc1999ed4857799100434e4f46f68f4e7c13 (patch)
tree85ff1236aa3b1afc546b217f7fb47c7f152bac8e
parentbf36c76449a1e6ab0cc51438d7204727dc43de28 (diff)
ENGR00236141 csi:Add stride alignment setting from userspacejb4.1.2_1.0.0-beta
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 <guoyin.chen@freescale.com>
-rw-r--r--drivers/media/video/mxc/capture/ipu_csi_enc.c3
1 files changed, 2 insertions, 1 deletions
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);