From 1336eb3c334e74a85270b0ea680a5559c0d3245b Mon Sep 17 00:00:00 2001 From: Kaifu Hu Date: Thu, 22 Nov 2018 18:55:48 +0800 Subject: [PATCH] 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 --- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c | 4 ++++ 1 file changed, 4 insertions(+) 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 96682a3..d7d629c 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); -- 2.7.4