projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7929f3
)
drm/radeon: improve dac adjust heuristics for legacy pdac
author
Alex Deucher
<
[email protected]
>
Fri, 19 Jul 2013 21:44:43 +0000
(17:44 -0400)
committer
Alex Deucher
<
[email protected]
>
Mon, 22 Jul 2013 19:57:13 +0000
(15:57 -0400)
Hopefully avoid more quirks in the future due to bogus
vbios dac data.
Signed-off-by: Alex Deucher <
[email protected]
>
Cc:
[email protected]
drivers/gpu/drm/radeon/radeon_combios.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_combios.c
b/drivers/gpu/drm/radeon/radeon_combios.c
index 8528b81cd64fc7db2131ab853dc7ab66577d14ab..485f82c9929d0e6e9b428ebf9ff33699cec35bf7 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_combios.c
+++ b/
drivers/gpu/drm/radeon/radeon_combios.c
@@
-965,8
+965,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;
}