From 1bd7966d14bf125a8d53dd53229ed2c8dda174e5 Mon Sep 17 00:00:00 2001 From: Aravind Venkateswaran Date: Thu, 8 Dec 2016 15:19:23 -0800 Subject: msm: mdss: fix handling of audio for DVI sinks Certain sinks (such as DVI monitors) do not support audio which can be identified using the sink's EDID. For such sinks, ensure that audio is not routed over the external display. Change-Id: I1c1a634bf096392094b5fd868a87385764657e6b CRs-Fixed: 1093442 Signed-off-by: Aravind Venkateswaran --- include/linux/msm_ext_display.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/msm_ext_display.h b/include/linux/msm_ext_display.h index 59ba776b5f9b..b3a7e4ad722a 100644 --- a/include/linux/msm_ext_display.h +++ b/include/linux/msm_ext_display.h @@ -21,6 +21,15 @@ #define AUDIO_ACK_ENABLE BIT(4) #define AUDIO_ACK_CONNECT BIT(0) +/** + * Flags to be used with the HPD operation of the external display + * interface: + * MSM_EXT_DISP_HPD_NO_AUDIO: audio will not be routed to external display + * MSM_EXT_DISP_HPD_NO_VIDEO: video will not be routed to external display + */ +#define MSM_EXT_DISP_HPD_NO_AUDIO BIT(0) +#define MSM_EXT_DISP_HPD_NO_VIDEO BIT(1) + /** * struct ext_disp_cable_notify - cable notify handler structure * @link: a link for the linked list @@ -87,7 +96,8 @@ enum msm_ext_disp_power_state { struct msm_ext_disp_intf_ops { int (*hpd)(struct platform_device *pdev, enum msm_ext_disp_type type, - enum msm_ext_disp_cable_state state); + enum msm_ext_disp_cable_state state, + u32 flags); int (*notify)(struct platform_device *pdev, enum msm_ext_disp_cable_state state); int (*ack)(struct platform_device *pdev, -- cgit v1.2.3