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

Commit be947c00 authored by Animesh Kishore's avatar Animesh Kishore
Browse files

fbdev: msm: Fix HDMI frame rate



Calculate frame rate from video timing.

Change-Id: Ia18c4dd3bcd9335177126676c3f2bd3c96429539
Signed-off-by: default avatarAnimesh Kishore <animeshk@codeaurora.org>
parent 13cfa9aa
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -879,14 +879,15 @@ static inline u32 mdss_panel_get_framerate(struct mdss_panel_info *panel_info,
	case WRITEBACK_PANEL:
		frame_rate = DEFAULT_FRAME_RATE;
		break;
	case SPI_PANEL:
		frame_rate = panel_info->spi.frame_rate;
		break;
	case DTV_PANEL:
		if (panel_info->dynamic_fps) {
			frame_rate = panel_info->lcdc.frame_rate;
			break;
		}
	case SPI_PANEL:
		frame_rate = panel_info->spi.frame_rate;
		break;
		/* fall through */
	default:
		pixel_total = (panel_info->lcdc.h_back_porch +
			  panel_info->lcdc.h_front_porch +