hdmirx: fix irq issue [1/1]

PD#SWPL-145336

Problem:
T3X hdmi in source-led display error

Solution:
reopen top-irq when open HDMI

Verify:
T3X

Change-Id: I5946838bacf08e0d7d4e0bbc747a57f69825bc88
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
This commit is contained in:
Gaowei Zhao
2023-11-10 10:35:47 +08:00
committed by gerrit autosubmit
parent 01d8cd13ef
commit b76711b601
2 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -116,7 +116,8 @@
/* 2023.10.8 t3x some compatibility problem */
/* 2023.10.10 fix t3x frl audio problem */
/* 2023.10.30 fix t3x clk msr fail */
#define RX_VER1 "ver.2023/10/30"
/* 2023.11.13 fix t3x irq issue */
#define RX_VER1 "ver.2023/11/13"
/* 50ms timer for hdmirx main loop (HDMI_STATE_CHECK_FREQ is 20) */
@@ -4568,6 +4568,8 @@ void hdmirx_open_main_port_t3x(u8 port)
{
rx_info.main_port_open = true;
aml_phy_switch_port(port);
if (rx[port].state >= FSM_SIG_READY)
hdmirx_top_irq_en(1, 2, port);
}
/***********************
@@ -4622,13 +4624,11 @@ static void hdmirx_open_main_port(u8 port)
hdmi_rx_top_edid_update();
//hdmirx_hw_config();
} else {
aml_phy_switch_port(port);
if (rx_info.chip_id != CHIP_ID_T3X) {
if (rx[port].state >= FSM_SIG_STABLE)
rx[port].state = FSM_SIG_STABLE;
else
rx[port].state = FSM_HPD_LOW;
}
//aml_phy_switch_port(port);
if (rx[port].state >= FSM_SIG_STABLE)
rx[port].state = FSM_SIG_STABLE;
else
rx[port].state = FSM_HPD_LOW;
}
rx[port].var.edid_update_flag = 0;
rx_pkt_initial(port);
@@ -4646,6 +4646,8 @@ static void hdmirx_open_sub_port(u8 port)
{
rx_info.sub_port_open = true;
aml_phy_switch_port(port);
if (rx[port].state >= FSM_SIG_READY)
hdmirx_top_irq_en(1, 2, port);
rx_pr("%s:%d\n", __func__, port);
}