git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e41ace
)
OMAPDSS: enable hw on gamma control
author
Grazvydas Ignotas
<notasas@gmail.com>
Sat, 28 May 2016 00:20:49 +0000
(
03:20
+0300)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 3 Jul 2016 00:23:25 +0000
(
03:23
+0300)
forgot it back in 2012, relied on display being already on...
drivers/video/omap2/dss/display.c
patch
|
blob
|
history
diff --git
a/drivers/video/omap2/dss/display.c
b/drivers/video/omap2/dss/display.c
index
b4506d7
..
8822113
100644
(file)
--- a/
drivers/video/omap2/dss/display.c
+++ b/
drivers/video/omap2/dss/display.c
@@
-256,7
+256,7
@@
static ssize_t display_dss_gamma_store(struct device *dev,
struct omap_dss_device *dssdev = to_dss_device(dev);
unsigned int table[256];
char *end = NULL;
- int i;
+ int i
, ret
;
for (i = 0; i < 256; ) {
table[i++] = simple_strtoul(buf, &end, 0);
@@
-267,6
+267,10
@@
static ssize_t display_dss_gamma_store(struct device *dev,
buf = end;
}
+ ret = dispc_runtime_get();
+ if (ret < 0)
+ return ret;
+
if (i == 1 && table[0] == 0)
dispc_set_gamma_table(NULL, 0);
else if (i < 256) {
@@
-277,6
+281,8
@@
static ssize_t display_dss_gamma_store(struct device *dev,
dispc_mgr_go(dssdev->manager->id);
+ dispc_runtime_put();
+
return size;
}