From 781c36475cf44240cdeedfe7ddb4c7fd5df3dfba Mon Sep 17 00:00:00 2001 From: Per Persson Date: Mon, 28 Nov 2011 11:32:43 +0100 Subject: HDMIservice: Improve EDID handling Requirement on CEA Extension header revision number match is removed in order to accept older monitors. HDMI support is determined by the revision number. ST-Ericsson ID: 401287 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I111e679b12eb240e2346bd674da768c5d1c5a526 Signed-off-by: Per Persson Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/40794 Reviewed-by: QATOOLS Reviewed-by: Robert LIND Reviewed-by: Jimmy RUBIN --- src/hdmi_service.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/hdmi_service.c') diff --git a/src/hdmi_service.c b/src/hdmi_service.c index fd2b174..0a64425 100644 --- a/src/hdmi_service.c +++ b/src/hdmi_service.c @@ -341,6 +341,7 @@ static int hdmiplugged_handle(int *basic_audio_support) int res; int ret = 0; enum hdmi_plug_state plug_state; + int hdmi_support = 0; LOGHDMILIB("%s", "HDMIEVENT_HDMIPLUGGED"); @@ -389,7 +390,8 @@ static int hdmiplugged_handle(int *basic_audio_support) if (res == 0) res = edid_parse1(data + 1, formats, nr_formats, basic_audio_support, - &edid_latency); + &edid_latency, + &hdmi_support); if (res && (cnt < 2)) usleep(EDIDREAD_WAITTIME1); cnt++; @@ -400,6 +402,9 @@ static int hdmiplugged_handle(int *basic_audio_support) goto hdmiplugged_handle_end; } + } + + if (hdmi_support) { /* Set hdmi format to hdmi */ hdmi_format_set(HDMI_FORMAT_HDMI); cea = 1; -- cgit v1.2.3