[PATCH 62/133] [Jaunty SRU] ARM.imx51 Freescale:ENGR00111976 Fix IPUv3 U/V offset setting issue
Brad Figg
brad.figg at canonical.com
Thu Jul 9 16:48:52 UTC 2009
From: Ding Qiang <B02550 at freescale.com>
Fix IPUv3 U/V offset setting issue for FMT_YUV420P
Signed-off-by: Ding Qiang <B02550 at freescale.com>
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
drivers/mxc/ipu3/ipu_param_mem.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mxc/ipu3/ipu_param_mem.h b/drivers/mxc/ipu3/ipu_param_mem.h
index 76febf4..535f66a 100644
--- a/drivers/mxc/ipu3/ipu_param_mem.h
+++ b/drivers/mxc/ipu3/ipu_param_mem.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2005-2008 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2005-2009 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -225,8 +225,8 @@ static inline void _ipu_ch_param_init(int ch,
if (uv_stride < stride / 2)
uv_stride = stride / 2;
- u_offset = stride * height;
- v_offset = u_offset + (uv_stride * height / 2);
+ u_offset = (u == 0) ? stride * height : u;
+ v_offset = (v == 0) ? u_offset + (uv_stride * height / 2) : v;
break;
case IPU_PIX_FMT_YVU422P:
/* BPP & pixel format */
--
1.6.0.4
More information about the kernel-team
mailing list