Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50fe4cfd authored by ykzhao's avatar ykzhao Committed by Dave Airlie
Browse files

drm/kms/i915: Add the default mode for CRT output without EDID



Add the default mode for every output device when there
is no mode for it.

Signed-off-by: default avatarZhao Yakui <yakui.zhao@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent f0fda0a4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -109,8 +109,11 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,
	}

	count = (*connector_funcs->get_modes)(connector);
	if (!count) {
		count = drm_add_modes_noedid(connector, 800, 600);
		if (!count)
			return 0;
	}

	drm_mode_connector_list_update(connector);