]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm/i915: fix TV mode setting in property change
authorZhenyu Wang <zhenyu.z.wang@intel.com>
Mon, 23 Mar 2009 16:45:13 +0000 (00:45 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 1 Apr 2009 22:22:00 +0000 (15:22 -0700)
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>
drivers/gpu/drm/i915/intel_tv.c

index 5d9ca779ce2586a61c0bbc2c1a40aa1d41262599..d2c32983242dcda215d17badc211378711ed9750 100644 (file)
@@ -1570,6 +1570,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;
 
@@ -1608,8 +1610,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;
 }