TDM_INFO(" ==============Accept Changes Done=================================");
+ if (hwc_data->output_data->current_dpms != TDM_OUTPUT_DPMS_ON) {
+ TDM_ERR("dpms is not on. do not set buffer");
+ return TDM_ERROR_BAD_REQUEST;
+ }
+
ret = _drm_hwc_prepare_commit(hwc_data);
RETURN_VAL_IF_FAIL(ret == TDM_ERROR_NONE, ret);
TDM_INFO(" ==============COMMIT=================================");
+ if (hwc_data->output_data->current_dpms != TDM_OUTPUT_DPMS_ON) {
+ TDM_ERR("dpms is not on. do not commit");
+ return TDM_ERROR_BAD_REQUEST;
+ }
+
ret = drm_output_commit(output_data, sync, user_data);
RETURN_VAL_IF_FAIL(ret == TDM_ERROR_NONE, ret);