summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunkyeong Kim <jk0430.kim@samsung.com>2016-06-07 19:30:31 +0900
committerSooChan Lim <sc1.lim@samsung.com>2016-06-21 00:14:12 -0700
commit639684a7ea383b65e3df2c1c39fa7b4de62a5e2f (patch)
tree70141edb08aa87ede5b41ad8255fea44b46275f2
parent881130ded76243d317c8664567c61d69aef8b6b6 (diff)
downloadlibtdm-drm-639684a7ea383b65e3df2c1c39fa7b4de62a5e2f.tar.gz
libtdm-drm-639684a7ea383b65e3df2c1c39fa7b4de62a5e2f.tar.bz2
libtdm-drm-639684a7ea383b65e3df2c1c39fa7b4de62a5e2f.zip
set TDM_OUTPUT_CONN_STATUS_MODE_SETTED status after crtc setting
Change-Id: I75f0f8e23598205a6439b116ec069b880a902bf2 Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
-rw-r--r--src/tdm_drm_display.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c
index fc7e93d..dd24960 100644
--- a/src/tdm_drm_display.c
+++ b/src/tdm_drm_display.c
@@ -215,6 +215,10 @@ _tdm_drm_display_commit_primary_layer(tdm_drm_layer_data *layer_data,
TDM_ERR("set crtc failed: %m");
return TDM_ERROR_OPERATION_FAILED;
}
+ output_data->status = TDM_OUTPUT_CONN_STATUS_MODE_SETTED;
+ if (output_data->status_func)
+ output_data->status_func(output_data, output_data->status,
+ output_data->status_user_data);
*do_waitvblank = 1;
return TDM_ERROR_NONE;
} else if (layer_data->display_buffer_changed) {
@@ -226,6 +230,10 @@ _tdm_drm_display_commit_primary_layer(tdm_drm_layer_data *layer_data,
TDM_ERR("unset crtc failed: %m");
return TDM_ERROR_OPERATION_FAILED;
}
+ output_data->status = TDM_OUTPUT_CONN_STATUS_CONNECTED;
+ if (output_data->status_func)
+ output_data->status_func(output_data, output_data->status,
+ output_data->status_user_data);
*do_waitvblank = 1;
} else {
tdm_drm_event_data *event_data = calloc(1, sizeof(tdm_drm_event_data));