msm: mdss: hdmi: notify audio switch device only for CEA resolutions

Upon successful connection, audio should switch over to HDMI only for
CEA resolutions. In the current implementation, when HDCP authentication
succeeds, the audio switch device is notified irrespective of the
selected resolution even though no audio related setup is done. This can
lead to unintended consequences during video playback. Fix this by
notifying the audio switch device only for CEA resolutions.

Change-Id: If1372c0d6171d6d8091a768462043bffc41109d1
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
This commit is contained in:
Aravind Venkateswaran 2014-09-18 16:48:53 -07:00 committed by David Keitel
parent 8f9568b4a0
commit 97d6f58c1e

View file

@ -522,7 +522,8 @@ static inline void hdmi_tx_set_audio_switch_node(
return;
}
if (!hdmi_tx_is_dvi_mode(hdmi_ctrl)) {
if (!hdmi_tx_is_dvi_mode(hdmi_ctrl) &&
hdmi_tx_is_cea_format(hdmi_ctrl->video_resolution)) {
switch_set_state(&hdmi_ctrl->audio_sdev, val);
DEV_INFO("%s: audio state %s %d\n", __func__,