dpms: allow setting the same value twice 57/162157/1
authorBoram Park <boram1288.park@samsung.com>
Tue, 28 Nov 2017 06:48:45 +0000 (15:48 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 29 Nov 2017 09:42:16 +0000 (18:42 +0900)
Change-Id: I2a039987785c20cacb88be254ced2948cf23cbef

src/tdm_output.c

index 7449637..34fb0c6 100644 (file)
@@ -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");