make sure TMDS gets a crtc
authorDave Airlie <airlied@airlied2.(none)>
Wed, 18 Apr 2007 04:55:43 +0000 (14:55 +1000)
committerDave Airlie <airlied@airlied2.(none)>
Wed, 18 Apr 2007 04:55:43 +0000 (14:55 +1000)
linux-core/drm_crtc.c

index 437259d..e8f42fe 100644 (file)
@@ -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;
+                       }
                }
        }