summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandor Yu <R01008@freescale.com>2012-12-27 18:14:52 +0800
committerTapani <tapani@vmail.me>2013-03-29 14:35:03 +0800
commit9659f9aa206431a3bfd7bd377d564c107e792a0a (patch)
tree5cb8b0c15deb911e3aad86376f9059024183d6e2
parent9eb326ea795f49302d3675d83901b1467d58a6c2 (diff)
ENGR00238391 MX6x HDMI: Add default EDID config function when read EDID failed
Add default EDID config function when read EDID failed. Fix HDMI no audio issue when failed read EDID. Signed-off-by: Sandor Yu <R01008@freescale.com>
-rw-r--r--drivers/video/mxc_hdmi.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c
index 78397534f796..68f66450c26f 100644
--- a/drivers/video/mxc_hdmi.c
+++ b/drivers/video/mxc_hdmi.c
@@ -1562,6 +1562,12 @@ static void mxc_hdmi_edid_rebuild_modelist(struct mxc_hdmi *hdmi)
console_unlock();
}
+static void mxc_hdmi_default_edid_cfg(struct mxc_hdmi *hdmi)
+{
+ /* Default setting HDMI working in HDMI mode */
+ hdmi->edid_cfg.hdmi_cap = true;
+}
+
static void mxc_hdmi_default_modelist(struct mxc_hdmi *hdmi)
{
u32 i;
@@ -1686,8 +1692,10 @@ static void mxc_hdmi_cable_connected(struct mxc_hdmi *hdmi)
case HDMI_EDID_SAME:
break;
- case HDMI_EDID_NO_MODES:
case HDMI_EDID_FAIL:
+ mxc_hdmi_default_edid_cfg(hdmi);
+ /* No break here */
+ case HDMI_EDID_NO_MODES:
default:
mxc_hdmi_default_modelist(hdmi);
break;