1 From 9bcac9b9e678f476c83b5679b1215b6bc946130a 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, 20 Apr 2009 16:26:18 +0200
4 Subject: [PATCH 41/69] DSS2: Disable vertical offset with fieldmode
6 Content-Type: text/plain; charset=utf-8
7 Content-Transfer-Encoding: 8bit
9 When using fieldmode each field is basically a separate picture so the
10 vertical filter should start at phase 0 for both fields.
12 Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 drivers/video/omap2/dss/dispc.c | 23 +++++++++--------------
15 1 files changed, 9 insertions(+), 14 deletions(-)
17 diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
18 index 7e551c2..f15614b 100644
19 --- a/drivers/video/omap2/dss/dispc.c
20 +++ b/drivers/video/omap2/dss/dispc.c
21 @@ -1029,12 +1029,12 @@ static void _dispc_set_vid_accu1(enum omap_plane plane, int haccu, int vaccu)
22 static void _dispc_set_scaling(enum omap_plane plane,
23 u16 orig_width, u16 orig_height,
24 u16 out_width, u16 out_height,
25 - bool ilace, bool five_taps)
26 + bool ilace, bool five_taps,
31 int hscaleup, vscaleup;
36 @@ -1072,17 +1072,12 @@ static void _dispc_set_scaling(enum omap_plane plane,
38 dispc_write_reg(dispc_reg_att[plane], l);
42 - accu0 = fir_vinc / 2;
46 - accu1 = fir_vinc / 2;
47 - if (accu1 >= 1024/2) {
51 + if (ilace && !fieldmode) {
53 + accu1 = fir_vinc / 2;
54 + if (accu1 >= 1024/2) {
60 @@ -1582,7 +1577,7 @@ static int _dispc_setup_plane(enum omap_plane plane,
61 if (plane != OMAP_DSS_GFX) {
62 _dispc_set_scaling(plane, width, height,
63 out_width, out_height,
65 + ilace, five_taps, fieldmode);
66 _dispc_set_vid_size(plane, out_width, out_height);
67 _dispc_set_vid_color_conv(plane, cconv);