audio: keep hdmitx and eARC rx bandgap on [1/1]

PD#SWPL-175319

Problem:
eARC discovery failed when switch to enable eARC
from disable ARC/eARC or enable ARC option.

Solution:
keep hdmitx and eARC rx bandgap on.

Verify:
Ohm-soundbar

Test:
eARC discovery status.

Change-Id: I2d6844ca8c2e1727dff2c582fe8af7cf9b4bac7d
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
This commit is contained in:
jian zhou
2024-07-04 21:22:13 +08:00
committed by gerrit autosubmit
parent 5d51f3adf9
commit 156fd3c05d
+10 -2
View File
@@ -2045,7 +2045,11 @@ static void hdmitx_set_phy(struct hdmitx_dev *hdev)
phy_addr = P_TM2_HHI_HDMI_PHY_CNTL0;
else
phy_addr = P_HHI_HDMI_PHY_CNTL0;
hd_write_reg(phy_addr, 0x0);
if (earc_hdmitx_hpdst && chip_id == MESON_CPU_ID_SC2)
hd_write_reg(phy_addr, 0x0b4242);
else
hd_write_reg(phy_addr, 0x0);
if (chip_id == MESON_CPU_ID_TM2 || chip_id == MESON_CPU_ID_TM2B)
phy_addr = P_TM2_HHI_HDMI_PHY_CNTL1;
@@ -6024,7 +6028,11 @@ static void hdmi_phy_suspend(void)
phy_cntl5 = P_HHI_HDMI_PHY_CNTL5;
break;
}
hd_write_reg(phy_cntl0, 0x0);
if (earc_hdmitx_hpdst && hdev->tx_hw.chip_data->chip_type == MESON_CPU_ID_SC2)
hd_write_reg(phy_cntl0, 0x0b4242);
else
hd_write_reg(phy_cntl0, 0x0);
/* keep PHY_CNTL3 bit[1:0] as 0b11,
* otherwise may cause HDCP22 boot failed
*/