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:
parent
8f9568b4a0
commit
97d6f58c1e
1 changed files with 2 additions and 1 deletions
|
@ -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__,
|
||||
|
|
Loading…
Add table
Reference in a new issue