summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0041-DSS2-Disable-vertical-offset-with-fieldmode.patch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0041-DSS2-Disable-vertical-offset-with-fieldmode.patch
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0041-DSS2-Disable-vertical-offset-with-fieldmode.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0041-DSS2-Disable-vertical-offset-with-fieldmode.patch71
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0041-DSS2-Disable-vertical-offset-with-fieldmode.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0041-DSS2-Disable-vertical-offset-with-fieldmode.patch
new file mode 100644
index 0000000000..6785ade279
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0041-DSS2-Disable-vertical-offset-with-fieldmode.patch
@@ -0,0 +1,71 @@
1From 9bcac9b9e678f476c83b5679b1215b6bc946130a Mon Sep 17 00:00:00 2001
2From: =?utf-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@nokia.com>
3Date: Mon, 20 Apr 2009 16:26:18 +0200
4Subject: [PATCH] DSS2: Disable vertical offset with fieldmode
5MIME-Version: 1.0
6Content-Type: text/plain; charset=utf-8
7Content-Transfer-Encoding: 8bit
8
9When using fieldmode each field is basically a separate picture so the
10vertical filter should start at phase 0 for both fields.
11
12Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
13---
14 drivers/video/omap2/dss/dispc.c | 23 +++++++++--------------
15 1 files changed, 9 insertions(+), 14 deletions(-)
16
17diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
18index 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,
27+ bool fieldmode)
28 {
29 int fir_hinc;
30 int fir_vinc;
31 int hscaleup, vscaleup;
32- int fieldmode = 0;
33 int accu0 = 0;
34 int accu1 = 0;
35 u32 l;
36@@ -1072,17 +1072,12 @@ static void _dispc_set_scaling(enum omap_plane plane,
37
38 dispc_write_reg(dispc_reg_att[plane], l);
39
40- if (ilace) {
41- if (fieldmode) {
42- accu0 = fir_vinc / 2;
43- accu1 = 0;
44- } else {
45- accu0 = 0;
46- accu1 = fir_vinc / 2;
47- if (accu1 >= 1024/2) {
48- accu0 = 1024/2;
49- accu1 -= accu0;
50- }
51+ if (ilace && !fieldmode) {
52+ accu0 = 0;
53+ accu1 = fir_vinc / 2;
54+ if (accu1 >= 1024/2) {
55+ accu0 = 1024/2;
56+ accu1 -= accu0;
57 }
58 }
59
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,
64- ilace, five_taps);
65+ ilace, five_taps, fieldmode);
66 _dispc_set_vid_size(plane, out_width, out_height);
67 _dispc_set_vid_color_conv(plane, cconv);
68 }
69--
701.5.6.5
71