projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0fda0a
)
drm/kms/i915: Add the default mode for CRT output without EDID
author
ykzhao
<yakui.zhao@intel.com>
Thu, 3 Sep 2009 06:30:04 +0000
(14:30 +0800)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 7 Sep 2009 08:44:45 +0000
(18:44 +1000)
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>
drivers/gpu/drm/drm_crtc_helper.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_crtc_helper.c
b/drivers/gpu/drm/drm_crtc_helper.c
index e7e6c25b560c28ffc9b7a32705fc0bbf7f129e8b..6f4b4446fcdf3923e7fa4c736998cbd1b1cc25ec 100644
(file)
--- 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,
}
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);