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:
parent
1cbbd92306
commit
9765c980f3
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue