platform: msm_shared: fix the HDMI mode selection logic
Fix the HDMI mode selection logic in order to ensure that
resolutions with a higher refresh rate are preferred over
those with lower refresh rates. e.g. 4K 60fps should be
preferred over 4K 30fps.
Change-Id: I39b402f9e07669c4b4834993e99b30dd9f213573
diff --git a/platform/msm_shared/mdss_hdmi.c b/platform/msm_shared/mdss_hdmi.c
index b627664..a44e909 100644
--- a/platform/msm_shared/mdss_hdmi.c
+++ b/platform/msm_shared/mdss_hdmi.c
@@ -965,12 +965,14 @@
current_video_format = mdss_hdmi_video_formats[index];
} else if (new_timing_info.active_v ==
current_timing_info.active_v) {
- if (new_timing_info.refresh_rate <
+ if (new_timing_info.refresh_rate >
current_timing_info.refresh_rate) {
current_video_format = mdss_hdmi_video_formats[index];
}
}
}
+
+ mdss_hdmi_get_timing_info(¤t_timing_info, current_video_format);
}
if (mdss_hdmi_video_fmt != current_video_format)