diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-07-19 17:44:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-04 15:43:38 +0800 |
commit | e0d2313f66fea2e8a5286d5ccebb057810ad4e9b (patch) | |
tree | c9ac7a60c5fc92a23cceb1dcc929f3c77914199c /drivers | |
parent | 720c2af54ebce30c402581384e2287e66b4dee8c (diff) | |
download | lwn-e0d2313f66fea2e8a5286d5ccebb057810ad4e9b.tar.gz lwn-e0d2313f66fea2e8a5286d5ccebb057810ad4e9b.zip |
drm/radeon: improve dac adjust heuristics for legacy pdac
commit 03ed8cf9b28d886c64c7e705c7bb1a365fd8fb95 upstream.
Hopefully avoid more quirks in the future due to bogus
vbios dac data.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_combios.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index 51096adccb66..f616e400ba69 100644 --- a/drivers/gpu/drm/radeon/radeon_combios.c +++ b/drivers/gpu/drm/radeon/radeon_combios.c @@ -890,8 +890,10 @@ struct radeon_encoder_primary_dac *radeon_combios_get_primary_dac_info(struct dac = RBIOS8(dac_info + 0x3) & 0xf; p_dac->ps2_pdac_adj = (bg << 8) | (dac); } - /* if the values are all zeros, use the table */ - if (p_dac->ps2_pdac_adj) + /* if the values are zeros, use the table */ + if ((dac == 0) || (bg == 0)) + found = 0; + else found = 1; } |