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: Sandeep Panda <spanda@codeaurora.org>
This commit is contained in:
parent
af883d4db0
commit
e677fbbfaf
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue