summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Aguirre <a-aguirre@ti.com>2010-09-25 02:34:12 -0500
committerSebastien Jan <s-jan@ti.com>2010-11-03 15:58:00 +0100
commitb88c791545f57d25330b31df3ac7c882b5c03b96 (patch)
tree82e5edc83e8f95a63a4b2d2b55a7dc867c0eaa9c
parent6da0f87e32f5729c2f0113237cf643a507fbf713 (diff)
OMAP4: DSS WB - Fix wrong size configuration
Fix reversed size configuration, WB PIC_SIZ expects final destination size instead of receiving size. Change-Id: Id5ab0601f43aa81676ce9bffd93d560fcbe9e084 Signed-off-by: Alberto Aguirre <a-aguirre@ti.com> Signed-off-by: Mukund Mittal <mmittal@ti.com>
-rw-r--r--drivers/video/omap2/dss/dispc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index 28f137a7f6f9..23533e176b58 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -4917,7 +4917,8 @@ int dispc_setup_wb(struct writeback_cache_data *wb)
width, height,
(void *)paddr, (void *)puv_addr, out_width, out_height);
- _dispc_set_pic_size(plane, width, height);
+ /*WB PIC_SIZE is the final destination size*/
+ _dispc_set_pic_size(plane, out_width, out_height);
dispc_setup_plane_fifo(plane, fifo_low, fifo_high);
/* non interlaced */
@@ -4945,7 +4946,8 @@ int dispc_setup_wb(struct writeback_cache_data *wb)
scale_y = height != out_height || ch_height != out_ch_height;
DSSDBG(KERN_ERR"%d scale_x %d scale y ", scale_x, scale_y);
- _dispc_set_vid_size(plane, out_width, out_height);
+ /*WB size is the size delivered by Video pipeline*/
+ _dispc_set_vid_size(plane, width, height);
_dispc_set_scaling(plane, width, height,
out_width, out_height,