hdmitx: The logo is displayed twice during the restart process [1/1]

PD#SWPL-20447

Problem:
The logo is displayed twice during the restart process

Solution:
Modify the codes used to update the status of HPD during the restart.

Verify:
verify on the board of U212

Change-Id: I05786b0668991eb4c161529d04b0333493475d8c
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
This commit is contained in:
Zhengrong.Zhu
2020-02-12 14:29:57 +08:00
committed by Chris KIM
parent 8ab56d3b55
commit 4eb0070cba
2 changed files with 11 additions and 3 deletions

View File

@@ -3176,6 +3176,7 @@ struct hdmi_format_para *hdmi_get_fmt_name(char const *name, char const *attr)
char *lname;
enum hdmi_vic vic = HDMI_Unknown;
struct hdmi_format_para *para = &fmt_para_non_hdmi_fmt;
unsigned int copy_len;
if (!name)
return para;
@@ -3196,7 +3197,10 @@ struct hdmi_format_para *hdmi_get_fmt_name(char const *name, char const *attr)
sizeof(struct hdmi_format_para *))) {
para = all_fmt_paras[i];
memset(&para->ext_name[0], 0, sizeof(para->ext_name));
memcpy(&para->ext_name[0], name, sizeof(para->ext_name));
copy_len = strlen(name);
if (copy_len >= sizeof(para->ext_name))
copy_len = sizeof(para->ext_name) - 1;
memcpy(&para->ext_name[0], name, copy_len);
hdmi_parse_attr(para, name);
hdmi_parse_attr(para, attr);
} else {

View File

@@ -5942,6 +5942,12 @@ static int amhdmitx_probe(struct platform_device *pdev)
hdmitx_device.nb.notifier_call = hdmitx_reboot_notifier;
register_reboot_notifier(&hdmitx_device.nb);
HDMITX_Meson_Init(&hdmitx_device);
hdmitx_device.hpd_state = !!(hdmitx_device.hwop.cntlmisc(
&hdmitx_device, MISC_HPD_GPI_ST, 0));
vout_register_server(&hdmitx_vout_server);
#ifdef CONFIG_AMLOGIC_VOUT2_SERVE
vout2_register_server(&hdmitx_vout2_server);
@@ -5955,8 +5961,6 @@ static int amhdmitx_probe(struct platform_device *pdev)
hdmitx_extcon_register(pdev, dev);
HDMITX_Meson_Init(&hdmitx_device);
/* update fmt_attr */
hdmitx_init_fmt_attr(&hdmitx_device);