summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-04-05 23:57:52 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-26 07:47:52 -0700
commit7f4be8b0c326cd9d0a62a4d85809979a3428c5de (patch)
treeae93217bf51073a8a65781e5baa61283b13b03dc
parent23e8082246a1c0da3b1772e272059040c401ab78 (diff)
downloadlwn-7f4be8b0c326cd9d0a62a4d85809979a3428c5de.tar.gz
lwn-7f4be8b0c326cd9d0a62a4d85809979a3428c5de.zip
drm/radeon/kms: fix washed out image on legacy tv dac
commit 643acacf02679befd0f98ac3c5fecb805f1c9548 upstream. bad cast was overwriting the tvdac adj values Fixes fdo bug 27478 Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/gpu/drm/radeon/radeon_connectors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
index 65f81942f399..b3b0331ca2fe 100644
--- a/drivers/gpu/drm/radeon/radeon_connectors.c
+++ b/drivers/gpu/drm/radeon/radeon_connectors.c
@@ -315,7 +315,7 @@ int radeon_connector_set_property(struct drm_connector *connector, struct drm_pr
radeon_encoder = to_radeon_encoder(encoder);
if (!radeon_encoder->enc_priv)
return 0;
- if (rdev->is_atom_bios) {
+ if (ASIC_IS_AVIVO(rdev) || radeon_r4xx_atom) {
struct radeon_encoder_atom_dac *dac_int;
dac_int = radeon_encoder->enc_priv;
dac_int->tv_std = val;