#define SPRD_DRM_NAME "sprd"
+#define TDM_HWC 1
+
static tdm_sprd_data *sprd_data;
static int
tdm_func_pp sprd_func_pp;
tdm_func_capture sprd_func_capture;
tdm_error ret;
- char *str;
if (!dpy) {
TDM_ERR("display is null");
return NULL;
}
- str = getenv("TDM_HWC");
- if (str)
- sprd_data->hwc_mode = strtol(str, NULL, 10);
+#if TDM_HWC
+ /* enable the tdm_hwc */
+ sprd_data->hwc_mode = 1;
+#endif
LIST_INITHEAD(&sprd_data->output_list);
LIST_INITHEAD(&sprd_data->buffer_list);