Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e677fbbf authored by Sandeep Panda's avatar Sandeep Panda
Browse files

msm: mdss: fix frame rate calculation for DP interface



In the current implementation the frame rate value for
DP interface is returning wrong value which in turn
results in wrong estimate of bandwidth votes and causes
underrun on DP panels. Fix the issue by back calculating
frame rate from pixel clock value read from EDID.

Change-Id: I611fab423d2230a44c46d9eda0b31aa3a856fa98
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent af883d4d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1007,13 +1007,11 @@ static inline u32 mdss_panel_get_framerate(struct mdss_panel_info *panel_info)
	case MIPI_CMD_PANEL:
		frame_rate = panel_info->mipi.frame_rate;
		break;
	case DP_PANEL:
		frame_rate = panel_info->edp.frame_rate;
		break;
	case WRITEBACK_PANEL:
		frame_rate = DEFAULT_FRAME_RATE;
		break;
	case DTV_PANEL:
	case DP_PANEL:
		if (panel_info->dynamic_fps) {
			frame_rate = panel_info->lcdc.frame_rate / 1000;
			if (panel_info->lcdc.frame_rate % 1000)