]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gma500: Make VGA and HDMI connector hotpluggable
authorKero van Gelder <kero@chello.nl>
Sun, 31 Mar 2013 11:38:44 +0000 (13:38 +0200)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Tue, 2 Apr 2013 10:37:19 +0000 (12:37 +0200)
Both VGA and HDMI connectors are available on my Asus EeePC X101CH.
This patch will cause output to be shown on either when plugged in.
For both, it shows the leftmost 800x600, of the 1024x600 on LVDS.

Signed-off-by: Kero van Gelder <kero@chello.nl>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
drivers/gpu/drm/gma500/cdv_intel_crt.c
drivers/gpu/drm/gma500/cdv_intel_hdmi.c

index 8c175345d85c8fca1b88703d019e4a90717900a7..7b8386fc30242b194fa2eb7d081b9d2168711f79 100644 (file)
@@ -276,6 +276,7 @@ void cdv_intel_crt_init(struct drm_device *dev,
                goto failed_connector;
 
        connector = &psb_intel_connector->base;
+       connector->polled = DRM_CONNECTOR_POLL_HPD;
        drm_connector_init(dev, connector,
                &cdv_intel_crt_connector_funcs, DRM_MODE_CONNECTOR_VGA);
 
index e223b500022ec05262b59e69a28f204072c93e2b..464153d9d2df770b2805a0add9005ff8460c5541 100644 (file)
@@ -319,6 +319,7 @@ void cdv_hdmi_init(struct drm_device *dev,
                goto err_priv;
 
        connector = &psb_intel_connector->base;
+       connector->polled = DRM_CONNECTOR_POLL_HPD;
        encoder = &psb_intel_encoder->base;
        drm_connector_init(dev, connector,
                           &cdv_hdmi_connector_funcs,