summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0011-DSS2-Allocated-memory-for-Color-Look-up-table.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/0011-DSS2-Allocated-memory-for-Color-Look-up-table.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/0011-DSS2-Allocated-memory-for-Color-Look-up-table.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0011-DSS2-Allocated-memory-for-Color-Look-up-table.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0011-DSS2-Allocated-memory-for-Color-Look-up-table.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0011-DSS2-Allocated-memory-for-Color-Look-up-table.patch
new file mode 100644
index 0000000000..1a82ed2a22
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0011-DSS2-Allocated-memory-for-Color-Look-up-table.patch
@@ -0,0 +1,37 @@
1From 370d1f93a32e8fcaeac5c16574417e354af21d08 Mon Sep 17 00:00:00 2001
2From: Vaibhav Hiremath <hvaibhav@ti.com>
3Date: Tue, 31 Mar 2009 18:38:31 +0530
4Subject: [PATCH] DSS2: Allocated memory for Color Look-up-table
5
6We were not allocating memory for CMAP buffer and due to that
7G_CMAP was failing, since it does check for size of CMAP buffer.
8
9Called "fb_alloc_cmap" for llocating memory for CMAP.
10
11We are currently not supporting 1,2,4,8 bpp, so meaning less
12for us as of now. But for completeness this is required.
13
14Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
15---
16 drivers/video/omap2/omapfb/omapfb-main.c | 5 +++++
17 1 files changed, 5 insertions(+), 0 deletions(-)
18
19diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
20index 44febef..afe40a9 100644
21--- a/drivers/video/omap2/omapfb/omapfb-main.c
22+++ b/drivers/video/omap2/omapfb/omapfb-main.c
23@@ -1525,6 +1525,11 @@ int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi)
24 goto err;
25
26 set_fb_fix(fbi);
27+
28+ r = fb_alloc_cmap(&fbi->cmap, 256, 0);
29+ if (r)
30+ dev_err(fbdev->dev, "unable to allocate color map memory\n");
31+
32 err:
33 return r;
34 }
35--
361.5.6.5
37