drm/radeon/kms: add quirk for Acer laptop
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 17 Nov 2009 22:12:10 +0000 (17:12 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Dec 2009 01:36:44 +0000 (11:36 +1000)
DVI-I port is actually DVI-D

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_atombios.c

index cd07c0e9122c2df3fc0e6e0814bba99034d72ee8..74bc8dfcb2a25ad31ac9648a3ddd9f2af9a517a9 100644 (file)
@@ -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;
 }