summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Gilling <konkers@android.com>2012-04-12 15:47:51 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-12 15:47:51 -0700
commit82b450546baaaa6830c25df1ff478127b1d17949 (patch)
tree0ccc131798c55473f796dc6c3c6acc774d6a35a2
parent038ea6dcd4c32c21a093b8ec3780b435b5af51b6 (diff)
parentbc85c3e357438aca809270bc8e85f5479bbe6a40 (diff)
downloadomap4xxx-omapzoom-82b450546baaaa6830c25df1ff478127b1d17949.tar.gz
Merge "hwc: add handling for new style vsync events"
-rw-r--r--hwc/hwc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index 351ba7b8..a0b34b7f 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)