From: Alex Deucher Date: Tue, 17 Nov 2009 22:12:10 +0000 (-0500) Subject: drm/radeon/kms: add quirk for Acer laptop X-Git-Tag: v2.6.33-rc2~19^2~28^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e5f8ff3a9f4e7a71c5371b2122b32faf31c563a;p=profile%2Fcommon%2Fkernel-common.git drm/radeon/kms: add quirk for Acer laptop DVI-I port is actually DVI-D Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index cd07c0e..74bc8df 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -172,6 +172,15 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev, } } + /* Acer laptop reports DVI-D as DVI-I */ + if ((dev->pdev->device == 0x95c4) && + (dev->pdev->subsystem_vendor == 0x1025) && + (dev->pdev->subsystem_device == 0x013c)) { + if ((*connector_type == DRM_MODE_CONNECTOR_DVII) && + (supported_device == ATOM_DEVICE_DFP1_SUPPORT)) + *connector_type = DRM_MODE_CONNECTOR_DVID; + } + return true; }