]> Pileus Git - ~andy/linux/commitdiff
drm/i915: fixup tv load-detect on enabled but not active crtc
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Apr 2012 19:25:04 +0000 (21:25 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:02 +0000 (11:18 +0200)
When fixing up the crt load detect code I've failed to notice the same
problem in the tv load detect code. Again, unconditionally use the
load detect pipe infrastructure, it gets things right.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_tv.c

index 67f444d632fbd565baeb32cac79426dbf8f51fd8..2e626b861cd82924f1297751c359b21805159e29 100644 (file)
@@ -1251,9 +1251,7 @@ intel_tv_detect(struct drm_connector *connector, bool force)
        mode = reported_modes[0];
        drm_mode_set_crtcinfo(&mode, 0);
 
-       if (intel_tv->base.base.crtc && intel_tv->base.base.crtc->enabled) {
-               type = intel_tv_detect_type(intel_tv, connector);
-       } else if (force) {
+       if (force) {
                struct intel_load_detect_pipe tmp;
 
                if (intel_get_load_detect_pipe(&intel_tv->base, connector,