diff options
author | Marius Gröger <marius.groeger@googlemail.com> | 2010-09-21 15:30:59 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-05 21:46:20 -0400 |
commit | 5bccf5e32f010ac4d99e1eafb8669cfb35a0889a (patch) | |
tree | 9d1174cc1b0ff129edab3d380ba03d5cfcd2eed2 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | d0f8a854c340986359a3b0a97e380c71def7a440 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 17a6602b5885..8e071bf5e250 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -241,6 +241,8 @@ struct radeon_mode_info { | |||
241 | struct drm_property *tmds_pll_property; | 241 | struct drm_property *tmds_pll_property; |
242 | /* underscan */ | 242 | /* underscan */ |
243 | struct drm_property *underscan_property; | 243 | struct drm_property *underscan_property; |
244 | struct drm_property *underscan_hborder_property; | ||
245 | struct drm_property *underscan_vborder_property; | ||
244 | /* hardcoded DFP edid from BIOS */ | 246 | /* hardcoded DFP edid from BIOS */ |
245 | struct edid *bios_hardcoded_edid; | 247 | struct edid *bios_hardcoded_edid; |
246 | 248 | ||
@@ -370,6 +372,8 @@ struct radeon_encoder { | |||
370 | uint32_t pixel_clock; | 372 | uint32_t pixel_clock; |
371 | enum radeon_rmx_type rmx_type; | 373 | enum radeon_rmx_type rmx_type; |
372 | enum radeon_underscan_type underscan_type; | 374 | enum radeon_underscan_type underscan_type; |
375 | uint32_t underscan_hborder; | ||
376 | uint32_t underscan_vborder; | ||
373 | struct drm_display_mode native_mode; | 377 | struct drm_display_mode native_mode; |
374 | void *enc_priv; | 378 | void *enc_priv; |
375 | int audio_polling_active; | 379 | int audio_polling_active; |