From: Kaifu Hu Date: Thu, 22 Nov 2018 10:55:48 +0000 (+0800) Subject: hdmitx: disable encryption hdcp1.4 fail [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1336eb3c334e74a85270b0ea680a5559c0d3245b;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git hdmitx: disable encryption hdcp1.4 fail [1/1] PD#SWPL-2302 Problem: Play online video,half an hour later, the TV shows a pink screen and the sound is normal. Solution: Check hdcp1.4 status and disable encryption when fail. Verify: S922X Change-Id: I6ce51824726b267d140750f9e9d80aa8bb921cac Signed-off-by: Kaifu Hu --- diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c index 96682a3c58c8..d7d629cbe581 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c @@ -4317,6 +4317,10 @@ static void hdcptx_events_handle(unsigned long arg) st_flag = hdmitx_rd_reg(HDMITX_DWC_A_APIINTSTAT); pr_info("hdcp14: instat: 0x%x\n", st_flag); } + + if (st_flag & (1 << 6)) { + hdmitx_set_reg_bits(HDMITX_DWC_A_HDCPCFG1, 1, 1, 1); + } if (st_flag & (1 << 7)) { hdmitx_wr_reg(HDMITX_DWC_A_APIINTCLR, 1 << 7); hdmitx_hdcp_opr(3);