]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00238391 MX6x HDMI: Add default EDID config function when read EDID failed
authorSandor Yu <R01008@freescale.com>
Thu, 27 Dec 2012 10:14:52 +0000 (18:14 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:49 +0000 (08:35 +0200)
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>
drivers/video/mxc_hdmi.c

index 284c6e5e5a5e3b8df1c545e28956b6fca78f6f5f..09b8823d3c15d0bbd041f82ad84195c7f584b278 100644 (file)
@@ -1560,6 +1560,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;
@@ -1680,8 +1686,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;