drm/radeon/kms: Add DDC quirk for ASUS RS400
Subsystems (2)
PATCH 1/1 drm/radeon/kms: Add DDC quirk for ASUS RS400
From: Alex Deucher <[email protected]>
vbios is missing a ddc entry for the DVI-D port.
Reported by ponyofdeath on IRC.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/radeon_combios.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +9 -0
@@ -2152,6 +2152,7 @@ static bool radeon_apply_legacy_quirks(struct drm_device *dev,struct radeon_i2c_bus_rec *ddc_i2c, struct radeon_hpd *hpd) { + struct radeon_device *rdev = dev->dev_private;/* Certain IBM chipset RN50s have a BIOS reporting two VGAs, one with VGA DDC and one with CRT2 DDC. - kill the CRT2 DDC one */
@@ -2170,6 +2171,14 @@ static bool radeon_apply_legacy_quirks(struct drm_device *dev,return false; } +/* ASUS RS400 system with missing DVI port DDC */ +if (dev->pdev->device ==0x5A41 && + dev->pdev->subsystem_vendor ==0x1043 && + dev->pdev->subsystem_device ==0x81C8 ) { +if (*legacy_connector ==CONNECTOR_DVI_D_LEGACY ) + *ddc_i2c =combios_setup_i2c_bus (rdev,DDC_MONID ,0 ,0 ); + } +return true; }
Signature · 1 line
1.7.3.4
Sorry, ignore this one for now.
Alex
Quoted 41 lines · On Tue, Jan 3, 2012 at 11:19 AM, <[email protected]> wrote:
From: Alex Deucher <[email protected]>
vbios is missing a ddc entry for the DVI-D port.
Reported by ponyofdeath on IRC.Signed-off-by Alex Deucher <[email protected]>---
drivers/gpu/drm/radeon/radeon_combios.c | 9 +++++++++1 files changed, 9 insertions(+), 0 deletions(-)drivers/gpu/drm/radeon/radeon_combios.c +1
-0@@ -2152,6 +2152,7 @@ static bool radeon_apply_legacy_quirks(struct drm_device *dev, struct radeon_i2c_bus_rec *ddc_i2c, struct radeon_hpd *hpd) { + struct radeon_device *rdev = dev->dev_private; /* Certain IBM chipset RN50s have a BIOS reporting two VGAs,one with VGA DDC and one with CRT2 DDC. - kill the CRT2 DDC one */
drivers/gpu/drm/radeon/radeon_combios.c +8
-1@@ -2170,6 +2171,14 @@ static bool radeon_apply_legacy_quirks(struct drm_device *dev, return false; } + /* ASUS RS400 system with missing DVI port DDC */ + if (dev->pdev->device == 0x5A41 && + dev->pdev->subsystem_vendor == 0x1043 && + dev->pdev->subsystem_device == 0x81C8) { + if (*legacy_connector == CONNECTOR_DVI_D_LEGACY) + *ddc_i2c = combios_setup_i2c_bus(rdev, DDC_MONID, 0, 0); + } + return true; } --1.7.3.4