summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0039-DSS2-Add-sysfs-entry-to-for-the-alpha-blending-supp.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/0039-DSS2-Add-sysfs-entry-to-for-the-alpha-blending-supp.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/0039-DSS2-Add-sysfs-entry-to-for-the-alpha-blending-supp.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0039-DSS2-Add-sysfs-entry-to-for-the-alpha-blending-supp.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0039-DSS2-Add-sysfs-entry-to-for-the-alpha-blending-supp.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0039-DSS2-Add-sysfs-entry-to-for-the-alpha-blending-supp.patch
new file mode 100644
index 0000000000..af8c2cd09b
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0039-DSS2-Add-sysfs-entry-to-for-the-alpha-blending-supp.patch
@@ -0,0 +1,59 @@
1From 6f1f0c7b19ecb468824b79f9d181ef0da41b7d7d Mon Sep 17 00:00:00 2001
2From: Hardik Shah <hardik.shah@ti.com>
3Date: Fri, 17 Apr 2009 13:58:21 +0530
4Subject: [PATCH] DSS2: Add sysfs entry to for the alpha blending support.
5
6Signed-off-by: Hardik Shah <hardik.shah@ti.com>
7---
8 drivers/video/omap2/dss/manager.c | 21 +++++++++++++++++++++
9 1 files changed, 21 insertions(+), 0 deletions(-)
10
11diff --git a/drivers/video/omap2/dss/manager.c b/drivers/video/omap2/dss/manager.c
12index e0501c4..7965a84 100644
13--- a/drivers/video/omap2/dss/manager.c
14+++ b/drivers/video/omap2/dss/manager.c
15@@ -192,6 +192,22 @@ static ssize_t manager_color_key_enabled_store(struct omap_overlay_manager *mgr,
16
17 return size;
18 }
19+static ssize_t manager_alpha_blending_enabled_show(
20+ struct omap_overlay_manager *mgr, char *buf)
21+{
22+ return snprintf(buf, PAGE_SIZE, "%d\n",
23+ mgr->get_alpha_blending_status(mgr));
24+}
25+static ssize_t manager_alpha_blending_enabled_store(
26+ struct omap_overlay_manager *mgr,
27+ const char *buf, size_t size)
28+{
29+ int enable;
30+ if (sscanf(buf, "%d", &enable) != 1)
31+ return -EINVAL;
32+ mgr->enable_alpha_blending(mgr, enable);
33+ return size;
34+}
35
36
37 struct manager_attribute {
38@@ -215,6 +231,10 @@ static MANAGER_ATTR(color_key_value, S_IRUGO|S_IWUSR,
39 manager_color_key_value_show, manager_color_key_value_store);
40 static MANAGER_ATTR(color_key_enabled, S_IRUGO|S_IWUSR,
41 manager_color_key_enabled_show, manager_color_key_enabled_store);
42+static MANAGER_ATTR(alpha_blending_enabled, S_IRUGO|S_IWUSR,
43+ manager_alpha_blending_enabled_show,
44+ manager_alpha_blending_enabled_store);
45+
46
47 static struct attribute *manager_sysfs_attrs[] = {
48 &manager_attr_name.attr,
49@@ -223,6 +243,7 @@ static struct attribute *manager_sysfs_attrs[] = {
50 &manager_attr_color_key_type.attr,
51 &manager_attr_color_key_value.attr,
52 &manager_attr_color_key_enabled.attr,
53+ &manager_attr_alpha_blending_enabled.attr,
54 NULL
55 };
56
57--
581.5.6.5
59