diff options
author | ykzhao <yakui.zhao@intel.com> | 2009-09-03 02:30:04 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-09-07 04:44:45 -0400 |
commit | 50fe4cfdc759fb3c0cffc3b90281efb139631fb7 (patch) | |
tree | a714b85bd64e18143b2c6222642bc1d93005e9c3 /drivers/gpu/drm/drm_crtc_helper.c | |
parent | f0fda0a47b26aba986fe65897891956c1792b526 (diff) |
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: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index e7e6c25b560c..6f4b4446fcdf 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -109,8 +109,11 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector, | |||
109 | } | 109 | } |
110 | 110 | ||
111 | count = (*connector_funcs->get_modes)(connector); | 111 | count = (*connector_funcs->get_modes)(connector); |
112 | if (!count) | 112 | if (!count) { |
113 | return 0; | 113 | count = drm_add_modes_noedid(connector, 800, 600); |
114 | if (!count) | ||
115 | return 0; | ||
116 | } | ||
114 | 117 | ||
115 | drm_mode_connector_list_update(connector); | 118 | drm_mode_connector_list_update(connector); |
116 | 119 | ||