diff options
| author | Krishna Srinivas <krisrini@codeaurora.org> | 2016-09-22 18:23:34 -0700 |
|---|---|---|
| committer | Harsh Sahu <hsahu@codeaurora.org> | 2016-11-11 12:11:00 -0800 |
| commit | 04977d266e0b3c60ca1e01be79eb0ccc02ccf834 (patch) | |
| tree | 71f4581e0bf6d2d19809e2cf48f6db4bb876bbfa /drivers/video/fbdev | |
| parent | 52b5beebeb4301dcd8653393cc5aefa9688a614f (diff) | |
msm: mdss: hdmi: Send audio notify only in HDMI mode
Check if mode is not DVI before giving audio
notifications.
Change-Id: I1dfc6a77961a24fd4ebeefc10cfc03c9e264be03
Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_hdmi_tx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c index 1a3bc5b69fb5..d8af1688c6c3 100644 --- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c +++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c @@ -409,7 +409,8 @@ static inline void hdmi_tx_send_cable_notification( static inline void hdmi_tx_set_audio_switch_node( struct hdmi_tx_ctrl *hdmi_ctrl, int val) { - if (hdmi_ctrl && hdmi_ctrl->ext_audio_data.intf_ops.notify) + if (hdmi_ctrl && hdmi_ctrl->ext_audio_data.intf_ops.notify && + !hdmi_tx_is_dvi_mode(hdmi_ctrl)) hdmi_ctrl->ext_audio_data.intf_ops.notify(hdmi_ctrl->ext_pdev, val); } |
