]> git.openfabrics.org - ~emulex/infiniband.git/commit
drm/radeon: add properties to configure the width of the underscan borders
authorMarius Gröger <marius.groeger@googlemail.com>
Tue, 21 Sep 2010 19:30:59 +0000 (21:30 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Oct 2010 01:46:20 +0000 (11:46 +1000)
commit5bccf5e32f010ac4d99e1eafb8669cfb35a0889a
tree9d1174cc1b0ff129edab3d380ba03d5cfcd2eed2
parentd0f8a854c340986359a3b0a97e380c71def7a440
drm/radeon: add properties to configure the width of the underscan borders

This allows for a more exact fitting on the physical
display. The new properties default to zero which corresponds to the
previous underscan border width[height] formula:
(display_width[display_width] >> 5) + 16.

Example to set a horizontal border width of 30 and a vertikal border
height of 22:

   xrandr --output HDMI-0 --set underscan on --set "underscan hborder" 30 --set "underscan vborder" 22

Signed-off-by: Marius Gröger <marius.groeger@googlemail.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_mode.h