summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2012-08-02 15:15:48 -0500
committerJean-Baptiste Queru <jbq@google.com>2012-08-02 14:29:41 -0700
commitd64ff502731a2e42df31ec24f287bac5b77e1312 (patch)
tree6d1d9581c9e32e62fc3f4c2e7906f509a6869936
parent692b0d6601761e7b1c1f8cb9581358d77551d4dd (diff)
downloadhardware_ti_omap4xxx-d64ff502731a2e42df31ec24f287bac5b77e1312.zip
hardware_ti_omap4xxx-d64ff502731a2e42df31ec24f287bac5b77e1312.tar.gz
hardware_ti_omap4xxx-d64ff502731a2e42df31ec24f287bac5b77e1312.tar.bz2
OMAP4:Panda: Use old hwcomposer API version for panda
The hwcomposer for OMAP4 is generic to the all OMAP4 processors. Panda does not support Vsync protocal which is expected when the HAL declares an API support level of 0.3. Therefore indicate to the upper layers that if the product is panda then only API level 0.2 is supported which then forces upper layers to fake the vsync signal Change-Id: I22a39f55ea017ced25424556ffc95b099d0a2781 Signed-off-by: Dan Murphy <dmurphy@ti.com>
-rw-r--r--hwc/hwc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index d6c28f7..efdeb68 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -1938,7 +1938,13 @@ static int omap4_hwc_device_open(const hw_module_t* module, const char* name,
memset(hwc_dev, 0, sizeof(*hwc_dev));
hwc_dev->base.common.tag = HARDWARE_DEVICE_TAG;
- hwc_dev->base.common.version = HWC_DEVICE_API_VERSION_0_3;
+ char product_value[PROPERTY_VALUE_MAX];
+ property_get("ro.product.board", product_value, "");
+ if (strncmp("panda", product_value, PROPERTY_VALUE_MAX) == 0)
+ hwc_dev->base.common.version = HWC_DEVICE_API_VERSION_0_2;
+ else
+ hwc_dev->base.common.version = HWC_DEVICE_API_VERSION_0_3;
+
hwc_dev->base.common.module = (hw_module_t *)module;
hwc_dev->base.common.close = omap4_hwc_device_close;
hwc_dev->base.prepare = omap4_hwc_prepare;