From 9df621a3eeae8ecc02d3780c08e3c4e14a70bdda Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Fri, 17 Dec 2010 10:28:27 -0500 Subject: [PATCH] drm/radeon/kms: only enable underscan by default if the monitor supports audio Users with TVs or monitors that don't overscan by default would prefer to not have underscan enabled, while users with overscanning TVs prefer underscan. This should hopefully make everyone happy as most monitors with audio tend to be TVs which overscan by default and monitors without audio don't overscan. Underscan can still be overriden by changing the connector attribute. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_display.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index a26c1c3..3bca929 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -1307,7 +1307,7 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc, (!(mode->flags & DRM_MODE_FLAG_INTERLACE)) && ((radeon_encoder->underscan_type == UNDERSCAN_ON) || ((radeon_encoder->underscan_type == UNDERSCAN_AUTO) && - drm_detect_hdmi_monitor(radeon_connector->edid) && + drm_detect_monitor_audio(radeon_connector->edid) && is_hdtv_mode(mode)))) { if (radeon_encoder->underscan_hborder != 0) radeon_crtc->h_border = radeon_encoder->underscan_hborder; -- 1.7.1.1