hwc: hdmi: Add check for interlaced formats
The HDMI core can support some interlaced formats and will report
interlaced format as supported in the timing information. As
a result, we need to explicitly check for interlaced formats
when picking the best mode for the HDMI tv.
Change-Id: I3b083026b66b4e16368ce54e8f88573684512bcd
diff --git a/libhdmi/hdmi.cpp b/libhdmi/hdmi.cpp
index 1b2ffe0..fb6493a 100644
--- a/libhdmi/hdmi.cpp
+++ b/libhdmi/hdmi.cpp
@@ -412,8 +412,9 @@
// for all the timing info read, get the best config
for (int configIndex = 0; configIndex < mModeCount; configIndex++) {
currentModeInfo = mDisplayConfigs[configIndex];
+ edidMode = mEDIDModes[configIndex];
- if (!currentModeInfo.supported) {
+ if (!isValidMode(edidMode)) {
ALOGD("%s EDID Mode %d is not supported", __FUNCTION__, edidMode);
continue;
}