1 From 0db37fa025f0eac64f9fdad49e310d7660f48944 Mon Sep 17 00:00:00 2001
2 From: =?utf-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@nokia.com>
3 Date: Tue, 12 May 2009 14:38:05 +0200
4 Subject: [PATCH 68/69] DSS2: Swap field offset values w/ VRFB rotation
6 Content-Type: text/plain; charset=utf-8
7 Content-Transfer-Encoding: 8bit
9 The field 0 and field 1 offset values were still incorrect when VRFB
10 rotation is used. Swap them to put the fields into proper order.
12 Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 drivers/video/omap2/dss/dispc.c | 17 +++++++++++------
15 1 files changed, 11 insertions(+), 6 deletions(-)
17 diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
18 index 5fc9457..b0e4960 100644
19 --- a/drivers/video/omap2/dss/dispc.c
20 +++ b/drivers/video/omap2/dss/dispc.c
21 @@ -1182,6 +1182,11 @@ static void calc_vrfb_rotation_offset(u8 rotation, bool mirror,
23 DSSDBG("calc_rot(%d): scrw %d, %dx%d\n", rotation, screen_width,
27 + * field 0 = even field = bottom field
28 + * field 1 = odd field = top field
30 switch (rotation + mirror * 4) {
33 @@ -1194,11 +1199,11 @@ static void calc_vrfb_rotation_offset(u8 rotation, bool mirror,
40 - *offset1 = screen_width * ps;
41 + *offset0 = screen_width * ps;
46 *row_inc = pixinc(1 + (screen_width - width) +
47 (fieldmode ? screen_width : 0),
48 @@ -1216,11 +1221,11 @@ static void calc_vrfb_rotation_offset(u8 rotation, bool mirror,
55 - *offset1 = screen_width * ps;
56 + *offset0 = screen_width * ps;
60 *row_inc = pixinc(1 - (screen_width + width) -
61 (fieldmode ? screen_width : 0),