]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drm/i915: change default panel fitting mode to preserve aspect ratio
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 24 Jun 2010 18:05:10 +0000 (11:05 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 1 Jul 2010 23:05:47 +0000 (16:05 -0700)
We did this a long time ago in the DDX driver, but now this fix belongs
in the kernel.

Preserving the aspect ratio is a nicer default.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=18033.

Tested-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_lvds.c

index 6a1accd83aecd9171f719deca33a04e078534585..31df55f0a0a7950a0e59ebce556fc30cde35b891 100644 (file)
@@ -983,8 +983,8 @@ void intel_lvds_init(struct drm_device *dev)
 
        drm_connector_attach_property(&intel_connector->base,
                                      dev->mode_config.scaling_mode_property,
-                                     DRM_MODE_SCALE_FULLSCREEN);
-       lvds_priv->fitting_mode = DRM_MODE_SCALE_FULLSCREEN;
+                                     DRM_MODE_SCALE_ASPECT);
+       lvds_priv->fitting_mode = DRM_MODE_SCALE_ASPECT;
        /*
         * LVDS discovery:
         * 1) check for EDID on DDC