hwc: Filter out interlace format from edid string

- Currently driver does not support interlace format for HDMI,
  so filter out interlace format from edid string and report
  only supported format to HAL.

Change-Id: Ib969bf16b02ca9f3305d34ebc9b082bd18c92d52
This commit is contained in:
Baldev Kumar Sahu 2016-01-22 14:15:10 +05:30 committed by Baldev Sahu
parent 1cbbd92306
commit 9765c980f3
1 changed files with 6 additions and 2 deletions

View File

@ -332,10 +332,14 @@ int HDMIDisplay::parseResolution(char* edidStr)
// Parse this string to get mode(int)
start = (char*) edidStr;
end = &delim;
int edid_data;
while(*end == delim) {
mEDIDModes[count] = (int) strtol(start, &end, 10);
edid_data = (int) strtol(start, &end, 10);
if(!isInterlacedMode(edid_data)) {
mEDIDModes[count] = edid_data;
count++;
}
start = end+1;
count++;
}
ALOGD_IF(DEBUG, "In %s: count = %d", __FUNCTION__, count);
for (int i = 0; i < count; i++)