aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/via/hw.c
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-04-23 18:24:52 -0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-04-23 18:24:52 -0400
commitc5a4e6d725654045e548b1a1f33059a44a06910f (patch)
tree6b22672f07fe004f71137abad8308c8e0673a638 /drivers/video/via/hw.c
parent32fab7bcc79ee0b97277627f456c94202858d851 (diff)
viafb: reduce OLPC refresh a bit
When allowing some PLL calculation we get a frequency that seems to be a bit higher than what the OLPC DCON likes resulting in a still readable but not so good image. We don't really know whether this is a problem with the calculation formula or the OLPC but as other displays seem to be happy with the other modes adjusting the OLPC refresh looks like the better thing. This patch prevents a regression when dynamic PLL calculation is allowed. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/hw.c')
-rw-r--r--drivers/video/via/hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c
index b8f01103f5c5..56ad185b7b22 100644
--- a/drivers/video/via/hw.c
+++ b/drivers/video/via/hw.c
@@ -2605,7 +2605,7 @@ int viafb_get_refresh(int hres, int vres, u32 long_refresh)
2605 2605
2606 if (abs(best->refresh_rate - long_refresh) > 3) { 2606 if (abs(best->refresh_rate - long_refresh) > 3) {
2607 if (hres == 1200 && vres == 900) 2607 if (hres == 1200 && vres == 900)
2608 return 50; /* OLPC DCON only supports 50 Hz */ 2608 return 49; /* OLPC DCON only supports 50 Hz */
2609 else 2609 else
2610 return 60; 2610 return 60;
2611 } 2611 }