From 51b1fb9858d88e6f346722e542bb7ac992f5c3bc Mon Sep 17 00:00:00 2001 From: Hang Cheng Date: Fri, 27 Dec 2019 11:38:16 +0800 Subject: [PATCH] hdmitx: detach vinfo before mode setting done [1/1] PD#SWPL-18673 Problem: when hotplug cable very quickly, the pin contact may be loose and edid read wrong, system will output default 1080p+rgb signal, after the pin contact ok and edid read ok, DV module send DV signal, the output mode and DV signal may not match, cause TV show green screen. Solution: only attach vinfo after hdmi mode setting done. Verify: AC214 Change-Id: Ice60d44f55ed377dbab4bef4639d67c263a6bbb6 Signed-off-by: Hang Cheng --- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c index 57cd885adf61..3aed4bdcc67d 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c @@ -4355,6 +4355,7 @@ static void hdmitx_hpd_plugin_handler(struct work_struct *work) /* start reading E-EDID */ if (hdev->repeater_tx) rx_repeat_hpd_state(1); + edidinfo_detach_to_vinfo(hdev); hdmitx_get_edid(hdev); hdev->cedst_policy = hdev->cedst_en & hdev->rxcap.scdc_present; hdmi_physcial_size_update(hdev);