summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-08-02 16:07:38 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-02 16:07:38 -0700
commit7e093dba39ffb912fea76826a96d82bf91008f66 (patch)
tree961bdd0860db07ef2f26025527d144c979c93cc2
parent741df2bd6f7e1fb0f2ef1194d7cf1325d327d5a4 (diff)
parent53835e97845edf78d513010ae4faa8fc467f0a6c (diff)
downloadhardware_ti_omap4xxx-7e093dba39ffb912fea76826a96d82bf91008f66.zip
hardware_ti_omap4xxx-7e093dba39ffb912fea76826a96d82bf91008f66.tar.gz
hardware_ti_omap4xxx-7e093dba39ffb912fea76826a96d82bf91008f66.tar.bz2
am 53835e97: Merge "OMAP4:Panda: Use old hwcomposer API version for panda"
* commit '53835e97845edf78d513010ae4faa8fc467f0a6c': OMAP4:Panda: Use old hwcomposer API version for panda
-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;