hdmirx: optimize the method of getting hdcp2.2 status

PD#SWPL-237520

Problem:
optimize the method of getting hdcp2.2 status

Solution:
optimize the method of getting hdcp2.2 status

Verify:
T6X

Change-Id: I08b3b0359d628e70c6ba9f04fc435bd1dd1d819e
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
This commit is contained in:
yicheng shen
2025-11-04 14:10:28 +08:00
committed by gerrit autosubmit
parent 22b93559ac
commit dec6008bb5
+2 -1
View File
@@ -5293,7 +5293,8 @@ u8 rx_get_hdcp_type(u8 port)
data_dec = hdmirx_rd_cor(RX_HDCP_STATUS_PWD_IVCRX, port);
rx[port].cur.hdcp14_state =
(hdmirx_rd_cor(RX_HDCP_STAT_HDCP1X_IVCRX, port) >> 4) & 3;
if (hdmirx_rd_bits_cor(CP2PA_GEN_STATUS_HDCP2X_IVCRX, MSK(2, 4), port))
if (rx[port].hdcp.hdcp_version == HDCP_VER_22 &&
hdmirx_rd_bits_cor(CP2PA_GEN_STATUS_HDCP2X_IVCRX, MSK(2, 4), port))
rx[port].cur.hdcp22_state = 3;
else
rx[port].cur.hdcp22_state = 0;