]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/radeon: add primary dac adj quirk for R200 board
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Feb 2013 17:01:58 +0000 (12:01 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Mar 2013 15:03:23 +0000 (15:03 +0000)
commit e8fc41377f5037ff7a661ea06adc05f1daec1548 upstream.

vbios values are wrong leading to colors that are
too bright.  Use the default values instead.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/radeon_combios.c

index ec36dd93d23ff49d143c45c9a697407a59c87460..c32fd9333fc3c15c9f8a446ffb962fddb919975f 100644 (file)
@@ -958,6 +958,15 @@ struct radeon_encoder_primary_dac *radeon_combios_get_primary_dac_info(struct
                        found = 1;
        }
 
+       /* quirks */
+       /* Radeon 9100 (R200) */
+       if ((dev->pdev->device == 0x514D) &&
+           (dev->pdev->subsystem_vendor == 0x174B) &&
+           (dev->pdev->subsystem_device == 0x7149)) {
+               /* vbios value is bad, use the default */
+               found = 0;
+       }
+
        if (!found) /* fallback to defaults */
                radeon_legacy_get_primary_dac_info_from_table(rdev, p_dac);