msm_fb: hdmi: Turn on switch dev when connect to HDMI

Audio is not routed to TV after deep sleep and resume.
Userspace is dependent on switch device to indentify audio
route. When HDMI is turned on, this switch needs to be turned
on as well.

CRs-Fixed: 377159
Change-Id: I7faaad5ff772ad2045876cc084aa71d120b77139
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
This commit is contained in:
Ajay Singh Parmar 2012-07-14 16:18:02 +05:30 committed by Stephen Boyd
parent 7a86f96a3e
commit df42878287

View file

@ -840,6 +840,9 @@ static void hdmi_msm_hpd_state_work(struct work_struct *work)
DEV_INFO("HDMI HPD: sense CONNECTED: send ONLINE\n");
kobject_uevent(external_common_state->uevent_kobj,
KOBJ_ONLINE);
switch_set_state(&external_common_state->sdev, 1);
DEV_INFO("Hdmi state switch to %d: %s\n",
external_common_state->sdev.state, __func__);
#ifndef CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT
/* Send Audio for HDMI Compliance Cases*/
envp[0] = "HDCP_STATE=PASS";