DO NOT MERGE

HDMI: update mode selection logic

The kernel now passes all of the modes to user space with flags
to specify whether or not it is preferred or not and if the
hardware actually supports the mode. With this, we can try to
pick modes that match the 'preferred' mode as specified in the EDID
from the panel.

If the preferred mode is masked due to the driver, the logic will
try to favor available modes that match the resolution of the preferred
mode. If none of these options are available, fall back to the
older logic of trying to find the best mode to match what the
current framebuffer is set to.

Change-Id: I289fd36ee5b8151739942832d9ff3fd876e8d3ee
1 file changed