diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0029-DSS2-OMAPFB-Set-line_length-correctly-for-YUV-with.patch | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | poky-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/0029-DSS2-OMAPFB-Set-line_length-correctly-for-YUV-with.patch')
-rw-r--r-- | meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0029-DSS2-OMAPFB-Set-line_length-correctly-for-YUV-with.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0029-DSS2-OMAPFB-Set-line_length-correctly-for-YUV-with.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0029-DSS2-OMAPFB-Set-line_length-correctly-for-YUV-with.patch new file mode 100644 index 0000000000..072978670b --- /dev/null +++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0029-DSS2-OMAPFB-Set-line_length-correctly-for-YUV-with.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | From a8a37babe4856170f4cba86c425a8f21975d9e9e Mon Sep 17 00:00:00 2001 | ||
2 | From: Tim Yamin <plasm@roo.me.uk> | ||
3 | Date: Mon, 13 Apr 2009 13:57:42 -0700 | ||
4 | Subject: [PATCH] DSS2: OMAPFB: Set line_length correctly for YUV with VRFB. | ||
5 | |||
6 | Signed-off-by: Tim Yamin <plasm@roo.me.uk> | ||
7 | --- | ||
8 | drivers/video/omap2/omapfb/omapfb-main.c | 30 +++++++++++++++++++++++++----- | ||
9 | 1 files changed, 25 insertions(+), 5 deletions(-) | ||
10 | |||
11 | diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c | ||
12 | index 57f5900..cd63740 100644 | ||
13 | --- a/drivers/video/omap2/omapfb/omapfb-main.c | ||
14 | +++ b/drivers/video/omap2/omapfb/omapfb-main.c | ||
15 | @@ -392,10 +392,19 @@ void set_fb_fix(struct fb_info *fbi) | ||
16 | fbi->screen_base = (char __iomem *)omapfb_get_region_vaddr(ofbi); | ||
17 | |||
18 | /* used by mmap in fbmem.c */ | ||
19 | - if (ofbi->rotation_type == OMAP_DSS_ROT_VRFB) | ||
20 | - fix->line_length = | ||
21 | - (OMAP_VRFB_LINE_LEN * var->bits_per_pixel) >> 3; | ||
22 | - else | ||
23 | + if (ofbi->rotation_type == OMAP_DSS_ROT_VRFB) { | ||
24 | + switch (var->nonstd) { | ||
25 | + case OMAPFB_COLOR_YUV422: | ||
26 | + case OMAPFB_COLOR_YUY422: | ||
27 | + fix->line_length = | ||
28 | + (OMAP_VRFB_LINE_LEN * var->bits_per_pixel) >> 2; | ||
29 | + break; | ||
30 | + default: | ||
31 | + fix->line_length = | ||
32 | + (OMAP_VRFB_LINE_LEN * var->bits_per_pixel) >> 3; | ||
33 | + break; | ||
34 | + } | ||
35 | + } else | ||
36 | fix->line_length = | ||
37 | (var->xres_virtual * var->bits_per_pixel) >> 3; | ||
38 | fix->smem_start = omapfb_get_region_paddr(ofbi); | ||
39 | @@ -704,7 +713,18 @@ static int omapfb_setup_overlay(struct fb_info *fbi, struct omap_overlay *ovl, | ||
40 | goto err; | ||
41 | } | ||
42 | |||
43 | - screen_width = fix->line_length / (var->bits_per_pixel >> 3); | ||
44 | + switch (var->nonstd) { | ||
45 | + case OMAPFB_COLOR_YUV422: | ||
46 | + case OMAPFB_COLOR_YUY422: | ||
47 | + if (ofbi->rotation_type == OMAP_DSS_ROT_VRFB) { | ||
48 | + screen_width = fix->line_length | ||
49 | + / (var->bits_per_pixel >> 2); | ||
50 | + break; | ||
51 | + } | ||
52 | + default: | ||
53 | + screen_width = fix->line_length / (var->bits_per_pixel >> 3); | ||
54 | + break; | ||
55 | + } | ||
56 | |||
57 | ovl->get_overlay_info(ovl, &info); | ||
58 | |||
59 | -- | ||
60 | 1.5.6.5 | ||
61 | |||