pmaports/device/linux-htc-ace/03_msm-fb-pixclock.patch
Martin Piatka 9150a7c966
htc-ace: patch framebuffer to report refresh rate of 60Hz (!268)
This allows Xorg to configure display mode correctly.

[ci:skip-build]: already built successfully
2019-03-09 22:17:41 +01:00

13 lines
481 B
Diff

diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c
index 015c3da18..34decdea8 100644
--- a/drivers/video/msm/msm_fb.c
+++ b/drivers/video/msm/msm_fb.c
@@ -1517,7 +1517,7 @@ static int msm_fb_register(struct msm_fb_data_type *mfd)
mfd->var_yres = panel_info->yres;
mfd->var_frame_rate = panel_info->frame_rate;
- var->pixclock = mfd->panel_info.clk_rate;
+ var->pixclock = 1000000 / 60;
mfd->var_pixclock = var->pixclock;
var->xres = panel_info->xres;