summaryrefslogtreecommitdiffstats
path: root/hwc
diff options
context:
space:
mode:
authorErik Gilling <konkers@android.com>2012-04-11 12:23:24 -0700
committerErik Gilling <konkers@android.com>2012-04-11 15:52:32 -0700
commitbc85c3e357438aca809270bc8e85f5479bbe6a40 (patch)
tree0ccc131798c55473f796dc6c3c6acc774d6a35a2 /hwc
parent96f2b555d2200fca7d8399c4c9a968590637aa31 (diff)
downloadhardware_ti_omap4xxx-bc85c3e357438aca809270bc8e85f5479bbe6a40.zip
hardware_ti_omap4xxx-bc85c3e357438aca809270bc8e85f5479bbe6a40.tar.gz
hardware_ti_omap4xxx-bc85c3e357438aca809270bc8e85f5479bbe6a40.tar.bz2
hwc: add handling for new style vsync events
Change-Id: Ia435c57e0938826206010a3bdb58bcefe4201405
Diffstat (limited to 'hwc')
-rw-r--r--hwc/hwc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index 351ba7b..a0b34b7 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -1743,7 +1743,8 @@ static void handle_uevents(omap4_hwc_device_t *hwc_dev, const char *buff, int le
dock = !strcmp(s, "change@/devices/virtual/switch/dock");
hdmi = !strcmp(s, "change@/devices/virtual/switch/hdmi");
- vsync = !strcmp(s, "change@/devices/virtual/switch/omapfb-vsync");
+ vsync = !strcmp(s, "change@/devices/platform/omapfb") ||
+ !strcmp(s, "change@/devices/virtual/switch/omapfb-vsync");
if (!dock && !vsync && !hdmi)
return;
@@ -1755,6 +1756,8 @@ static void handle_uevents(omap4_hwc_device_t *hwc_dev, const char *buff, int le
state = atoi(s + strlen("SWITCH_STATE="));
else if (!strncmp(s, "SWITCH_TIME=", strlen("SWITCH_TIME=")))
timestamp = strtoull(s + strlen("SWITCH_TIME="), NULL, 0);
+ else if (!strncmp(s, "VSYNC=", strlen("VSYNC=")))
+ timestamp = strtoull(s + strlen("VSYNC="), NULL, 0);
s += strlen(s) + 1;
if (s - buff >= len)