From 3bcc94eb47f4f3472cee98da566029d01129d1e5 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Tue, 28 Nov 2017 15:48:45 +0900 Subject: [PATCH] dpms: allow setting the same value twice Change-Id: I2a039987785c20cacb88be254ced2948cf23cbef --- src/tdm_output.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/tdm_output.c b/src/tdm_output.c index 7449637..34fb0c6 100644 --- a/src/tdm_output.c +++ b/src/tdm_output.c @@ -1181,11 +1181,6 @@ tdm_output_set_dpms(tdm_output *output, tdm_output_dpms dpms_value) return TDM_ERROR_BAD_REQUEST; } - if (private_output->current_dpms_value == dpms_value) { - _pthread_mutex_unlock(&private_display->lock); - return TDM_ERROR_NONE; - } - /** Use timer to call the output change callback of the sub-thread. * The output change callback of tdm_server and tdm_vblank was called * in the main thread. And it made the multi thread issue. If we use @@ -1267,11 +1262,6 @@ tdm_output_set_dpms_async(tdm_output *output, tdm_output_dpms dpms_value) return TDM_ERROR_BAD_REQUEST; } - if (private_output->current_dpms_value == dpms_value) { - _pthread_mutex_unlock(&private_display->lock); - return TDM_ERROR_NONE; - } - func_output = &private_display->func_output; if (!func_output->output_set_dpms_handler) { TDM_ERR("not implemented: output_set_dpms_handler"); -- 2.7.4