diff options
author | Dave Airlie <airlied@airlied2.(none)> | 2007-04-18 14:55:43 +1000 |
---|---|---|
committer | Dave Airlie <airlied@airlied2.(none)> | 2007-04-18 14:55:43 +1000 |
commit | 20b2949e3738bc900407d6aeddc6338f05b0b169 (patch) | |
tree | 2b16e15a3c5a675eb59687864401133c6878c6b2 /linux-core | |
parent | e46e028bd21552331ca4db409c2b45e54491ced6 (diff) |
make sure TMDS gets a crtc
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_crtc.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c index 437259d5..e8f42feb 100644 --- a/linux-core/drm_crtc.c +++ b/linux-core/drm_crtc.c @@ -553,16 +553,19 @@ bool drm_initial_config(drm_device_t *dev, bool can_grow) crtc->enabled = 1; crtc->desired_x = 0; crtc->desired_y = 0; - } else if (!lvds_crtc) { - lvds_crtc = crtc; - crtc->enabled = 1; - crtc->desired_x = 0; - crtc->desired_y = 0; - } else if (!tmds_crtc) { - tmds_crtc = crtc; - crtc->enabled = 1; - crtc->desired_x = 0; - crtc->desired_y = 0; + } else { + if (!lvds_crtc) { + lvds_crtc = crtc; + crtc->enabled = 1; + crtc->desired_x = 0; + crtc->desired_y = 0; + } + if (!tmds_crtc) { + tmds_crtc = crtc; + crtc->enabled = 1; + crtc->desired_x = 0; + crtc->desired_y = 0; + } } } |