summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-21 10:51:29 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-21 10:51:29 -0400
commit8a4922132fceaa8a442b6a38d75c04d65f7c3870 (patch)
treefdeecf4fb92b93a4246c018240f02d636308fcc2
parent8651f51addef3b6fb1a6c01b7f7dc2bbeaf5ac0d (diff)
ecore-drm: Remove call to set drm mode when creating an output
Summary: As it turns out, we don't need to make the call to set an output mode during creation. The mode will end up getting set anyway when we set the first buffer. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index c66a9da479..d6573f3a3d 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -498,19 +498,6 @@ _ecore_drm_output_create(Ecore_Drm_Device *dev, drmModeRes *res, drmModeConnecto
498 498
499 output->current_mode->flags |= DRM_MODE_TYPE_DEFAULT; 499 output->current_mode->flags |= DRM_MODE_TYPE_DEFAULT;
500 500
501 if (output->connected)
502 {
503 if (drmModeSetCrtc(output->dev->drm.fd, output->crtc_id,
504 output->crtc->buffer_id, 0, 0,
505 &output->conn_id, 1, &output->current_mode->info) < 0)
506 {
507 ERR("Failed to set Mode %dx%d for Output %s: %m",
508 output->current_mode->width, output->current_mode->height,
509 output->name);
510 goto err;
511 }
512 }
513
514 /* try to init backlight */ 501 /* try to init backlight */
515 output->backlight = 502 output->backlight =
516 _ecore_drm_output_backlight_init(output, conn->connector_type); 503 _ecore_drm_output_backlight_init(output, conn->connector_type);