1 From 9f8f1613253656f155b3844c8255a560f86e0acd Mon Sep 17 00:00:00 2001
2 From: =?utf-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@nokia.com>
3 Date: Mon, 6 Apr 2009 17:32:05 +0200
4 Subject: [PATCH] DSS2: Check scaling limits against proper values
6 Content-Type: text/plain; charset=utf-8
7 Content-Transfer-Encoding: 8bit
9 Move the ilace and fieldmode related height adjustments to be performed
10 before checking the scaling limits.
12 Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 drivers/video/omap2/dss/dispc.c | 31 ++++++++++++++++---------------
15 1 files changed, 16 insertions(+), 15 deletions(-)
17 diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
18 index 61861d8..ae7be3d 100644
19 --- a/drivers/video/omap2/dss/dispc.c
20 +++ b/drivers/video/omap2/dss/dispc.c
21 @@ -1366,10 +1366,25 @@ static int _dispc_setup_plane(enum omap_plane plane,
22 unsigned offset0, offset1;
25 + u16 frame_height = height;
30 + if (ilace && height >= out_height)
39 + DSSDBG("adjusting for ilace: height %d, pos_y %d, "
41 + height, pos_y, out_height);
44 if (plane == OMAP_DSS_GFX) {
45 if (width != out_width || height != out_height)
47 @@ -1448,28 +1463,14 @@ static int _dispc_setup_plane(enum omap_plane plane,
51 - if (ilace && height >= out_height)
54 calc_rotation_offset(rotation, mirror,
55 - screen_width, width, height, color_mode,
56 + screen_width, width, frame_height, color_mode,
58 &offset0, &offset1, &row_inc, &pix_inc);
60 DSSDBG("offset0 %u, offset1 %u, row_inc %d, pix_inc %d\n",
61 offset0, offset1, row_inc, pix_inc);
69 - DSSDBG("adjusting for ilace: height %d, pos_y %d, "
71 - height, pos_y, out_height);
74 _dispc_set_channel_out(plane, channel_out);
75 _dispc_set_color_mode(plane, color_mode);