pmaports/device/testing/linux-xiaomi-dior/0001-fix-refresh-rate.patch
Edwin 079f4f59f9
xiaomi-dior: new device (Xiaomi Redmi Note 4G) (MR 1992)
Add support for xiaomi-dior. Fix framebuffer bugs, now fbcon
and X server works.

[ci:skip-build] Already built in CI
2021-03-02 14:56:47 +03:00

26 lines
885 B
Diff

From a1f772d445488501c26e69855c11764a99c0ed36 Mon Sep 17 00:00:00 2001
From: Edwin <edwin@manjaro.lan>
Date: Fri, 12 Feb 2021 21:30:59 +0800
Subject: [PATCH] fix-refresh-rate
---
drivers/video/msm/mdss/mdss_fb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c
index 030d4129fc8..37f0bc664f0 100644
--- a/drivers/video/msm/mdss/mdss_fb.c
+++ b/drivers/video/msm/mdss/mdss_fb.c
@@ -1246,7 +1246,8 @@ static int mdss_fb_register(struct msm_fb_data_type *mfd)
var->left_margin = panel_info->lcdc.h_back_porch;
var->right_margin = panel_info->lcdc.h_front_porch;
var->hsync_len = panel_info->lcdc.h_pulse_width;
- var->pixclock = panel_info->clk_rate / 1000;
+ // var->pixclock = panel_info->clk_rate / 1000;
+ var->pixclock = 1000000 / 60;
/* id field for fb app */
--
2.30.0