mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-14 01:20:41 +09:00
drm/radeon: improve dac adjust heuristics for legacy pdac
commit 03ed8cf9b2 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
405a7ccac8
commit
d54b22e585
@@ -902,8 +902,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user