drm/tegra: hdmi: Detect DVI-only displays
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 28 Aug 2013 15:48:38 +0000 (18:48 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 31 Oct 2013 08:55:43 +0000 (09:55 +0100)
commit9f1591231aa72edd2cdad507520ad4088682262a
tree280d7b006694075d9e4c04d843d861a8d713431b
parent7d1d28aca08b974963feac19c05e0084e04db946
drm/tegra: hdmi: Detect DVI-only displays

Use EDID data to determine whether the display supports HDMI or DVI
only. The HDMI output used to assume to be connected to HDMI displays,
but that broke support for DVI displays that don't understand the
interspersed audio/other data.

To be on the safe side, default to DVI if no EDID data is available.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
[treding@nvidia.com: move detection to separate function]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hdmi.c