summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamkumar Radhakrishnan <ramkumar@codeaurora.org>2016-07-13 22:34:43 -0700
committerRamkumar Radhakrishnan <ramkumar@codeaurora.org>2016-07-13 22:34:43 -0700
commit0400de293afeec3d35f4867b421b04d00f2a7bda (patch)
treee67dbf2e70b58ea852fb513456a7c0452268c067
parent5a2c41d40ee3293bcea3d95688d17e90e41b4b50 (diff)
downloadhardware_qcom_display-0400de293afeec3d35f4867b421b04d00f2a7bda.tar.gz
hardware_qcom_display-0400de293afeec3d35f4867b421b04d00f2a7bda.tar.bz2
hardware_qcom_display-0400de293afeec3d35f4867b421b04d00f2a7bda.zip
sdm: Fix HDMI connect failures while changing the mode
Fix HDMI connect failures while changing the mode with lower fps to the mode with higher fps. Change-Id: I255c652d81179a9c601343611b2efead0494dc16 CRs-Fixed: 1041470
-rw-r--r--sdm/libs/core/fb/hw_hdmi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdm/libs/core/fb/hw_hdmi.cpp b/sdm/libs/core/fb/hw_hdmi.cpp
index ca1bbab72..6fb727197 100644
--- a/sdm/libs/core/fb/hw_hdmi.cpp
+++ b/sdm/libs/core/fb/hw_hdmi.cpp
@@ -744,7 +744,7 @@ DisplayError HWHDMI::GetDynamicFrameRateMode(uint32_t refresh_rate, uint32_t *mo
}
}
- if (pre_refresh_rate_diff > kThresholdRefreshRate) {
+ if (abs(pre_refresh_rate_diff) > kThresholdRefreshRate) {
return kErrorNotSupported;
}