]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/i915: fix TV mode setting in property change
authorZhenyu Wang <zhenyu.z.wang@intel.com>
Tue, 7 Apr 2009 02:40:25 +0000 (19:40 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:36:53 +0000 (10:36 -0700)
upstream commit: 7d6ff7851c23740c3813bdf457be638381774b69

Only set TV DAC in property change seems doesn't work, we have to
setup whole crtc pipe which assigned to TV alone.

Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
[anholt: Note that this should also fix the oops at startup with new 2D]
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/gpu/drm/i915/intel_tv.c

index d5bce10b613ef2115a9f4685bfb2e51fd561d04c..b05cb677f1f42d0de9cc025a8410dca9b85a7539 100644 (file)
@@ -1558,6 +1558,8 @@ intel_tv_set_property(struct drm_connector *connector, struct drm_property *prop
        struct drm_device *dev = connector->dev;
        struct intel_output *intel_output = to_intel_output(connector);
        struct intel_tv_priv *tv_priv = intel_output->dev_priv;
+       struct drm_encoder *encoder = &intel_output->enc;
+       struct drm_crtc *crtc = encoder->crtc;
        int ret = 0;
        bool changed = false;
 
@@ -1596,8 +1598,9 @@ intel_tv_set_property(struct drm_connector *connector, struct drm_property *prop
                goto out;
        }
 
-       if (changed)
-               intel_tv_mode_set(&intel_output->enc, NULL, NULL);
+       if (changed && crtc)
+               drm_crtc_helper_set_mode(crtc, &crtc->mode, crtc->x,
+                               crtc->y, crtc->fb);
 out:
        return ret;
 }