summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaowen Liu <b37945@freescale.com>2014-04-23 10:12:45 +0800
committerXiaowen Liu <b37945@freescale.com>2014-04-23 14:04:29 +0800
commitda200656156a7614eeadd3d80b512c2cb1f9c4ab (patch)
treefdea6caf3b7de91b3c2e0ae9d7527d0251dd4d40
parent3ea84b6f1477cd27c732dbc76d0295a8130ce377 (diff)
ENGR00309812 HDMI: no audio output from HDMI TV.
android framework need seperated hdmi display and hdmi audio switch. add lost code when do merge. Signed-off-by: Xiaowen Liu <b37945@freescale.com>
-rw-r--r--drivers/video/mxc/mxc_hdmi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/mxc/mxc_hdmi.c b/drivers/video/mxc/mxc_hdmi.c
index 9038c9aaf1ad..e51443d0f840 100644
--- a/drivers/video/mxc/mxc_hdmi.c
+++ b/drivers/video/mxc/mxc_hdmi.c
@@ -2011,13 +2011,15 @@ static void hotplug_worker(struct work_struct *work)
hdmi_set_cable_state(1);
+ if (!hdmi->hdmi_data.video_mode.mDVI)
+ switch_set_state(&hdmi->sdev_audio, 1);
+ switch_set_state(&hdmi->sdev_display, 1);
+
sprintf(event_string, "EVENT=plugin");
kobject_uevent_env(&hdmi->pdev->dev.kobj, KOBJ_CHANGE, envp);
#ifdef CONFIG_MXC_HDMI_CEC
mxc_hdmi_cec_handle(0x80);
#endif
- switch_set_state(&hdmi->sdev_audio, 1);
- switch_set_state(&hdmi->sdev_display, 1);
} else if (!(phy_int_pol & HDMI_PHY_HPD)) {
/* Plugout event */