hdmitx: force to set rxsense state low if hpd is low [1/1]
authorHang Cheng <hang.cheng@amlogic.com>
Thu, 30 May 2019 07:00:23 +0000 (15:00 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 31 May 2019 06:01:12 +0000 (23:01 -0700)
PD#OTT-3663

Problem:
when hpd low, hdmitx phy is disabled, the rxsense
state is not right

Solution:
force to set rxsense state = 0 when hpd is low

Verify:
p212

Change-Id: I8fa3e8a647558f0cbfc62e9384613911efbef559
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c

index 7f78c60..86c2471 100644 (file)
@@ -5076,7 +5076,8 @@ static int hdmitx_tmds_rxsense(void)
                        hd_write_reg(P_HHI_HDMI_PHY_CNTL0, 0);
                break;
        }
-
+       if (!(hdev->HWOp.CntlMisc(hdev, MISC_HPD_GPI_ST, 0)))
+               return 0;
        return ret;
 }