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>
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;
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;