dpms: allow setting the same value twice
authorBoram Park <boram1288.park@samsung.com>
Tue, 28 Nov 2017 06:48:45 +0000 (15:48 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 8 Jan 2018 03:37:34 +0000 (12:37 +0900)
Change-Id: I26ceb004348063a3c0ad35b4e4a2a016388031dc

src/tdm_output.c

index 1e29397..a7e2411 100644 (file)
@@ -1122,11 +1122,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
@@ -1200,11 +1195,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");