Kernel changes to add interoperability support for DVI. We do not want to send
NULL packets for DVI mode. This change depends on Android frameworks change to
actually make the decision of NOT routing audio to DVI.
ISSUE: ANDROID-1482
ISSUE: ANDROID-1519
Signed-off-by: Arun Kannan <arun.kannan@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
}
hdmib = REG_READ(hdmi_priv->hdmib_reg) | HDMIB_PIPE_B_SELECT;
- /*TODO: need logic for DVI here */
- hdmib |= (HDMIB_NULL_PACKET | HDMI_AUDIO_ENABLE);
+ if (hdmi_priv->monitor_type == MONITOR_TYPE_DVI) {
+ hdmib &= ~(HDMIB_NULL_PACKET | HDMI_AUDIO_ENABLE);
+ REG_WRITE(VIDEO_DIP_CTL, 0x0);
+ REG_WRITE(AUDIO_DIP_CTL, 0x0);
+ } else
+ hdmib |= (HDMIB_NULL_PACKET | HDMI_AUDIO_ENABLE);
hdmi_phy_misc = REG_READ(HDMIPHYMISCCTL);
if (mode != DRM_MODE_DPMS_ON) {
# define HDMIB_PIPE_B_SELECT (1 << 30)
# define HDMIB_NULL_PACKET (1 << 9)
#define HDMIB_HDCP_PORT (1 << 5)
+#define AUDIO_DIP_CTL 0x69060
+#define VIDEO_DIP_CTL 0x61170
/* #define LVDS 0x61180 */
# define MRST_PANEL_8TO6_DITHER_ENABLE (1 << 25)