Skip to content

Commit

Permalink
drm/kms/i915: Add the default mode for CRT output without EDID
Browse files Browse the repository at this point in the history
Add the default mode for every output device when there
is no mode for it.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
ykzhao authored and Dave Airlie committed Sep 7, 2009
1 parent f0fda0a commit 50fe4cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/gpu/drm/drm_crtc_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,
}

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

drm_mode_connector_list_update(connector);

Expand Down

0 comments on commit 50fe4cf

Please sign in to comment.