hdmitx: remove edid parser in plugin handler [1/1]

PD#SWPL-158055

Problem:
remove edid parser in plugin handler

Solution:
remove edid parser to drm

Verify:
SC2
S5

Test:
DRM-TX-78, DRM-TX-79, DRM-TX-80, DRM-TX-81

Change-Id: I44006093c6fff74c23c98a1e89e5d8666a3ecfc4
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
This commit is contained in:
ruofei.zhao
2024-05-13 16:14:18 +08:00
committed by gerrit autosubmit
parent 5bfbb36336
commit 1cafaab93a
9 changed files with 413 additions and 193 deletions
@@ -104,7 +104,6 @@ struct hdmitx_common {
u32 forced_edid; /* for external loading EDID */
unsigned char EDID_buf[EDID_MAX_BLOCK * 128];
struct rx_cap rxcap;
/****** hdmitx state ******/
/* Normally, after the HPD in or late resume, there will reading EDID, and
* notify application to select a hdmi mode output. But during the mode
@@ -250,16 +249,20 @@ enum HDMITX_PLATFORM_API_TYPE {
int hdmitx_common_attch_platform_data(struct hdmitx_common *tx_comm,
enum HDMITX_PLATFORM_API_TYPE type, void *plt_data);
/*Notify hpd event to all outer modules: vpp by vout, drm, userspace
*bool force_uevent: force send uevent even the hpd state NOT change.
/*
* Notify hpd event to all outer modules: vpp by vout, drm, userspace
* bool force_uevent: force send uevent even the hpd state NOT change
*/
int hdmitx_common_notify_ced_status(struct hdmitx_common *tx_comm);
int hdmitx_bootup_notify_hpd_status(struct hdmitx_common *tx_comm, bool force_uevent);
int hdmitx_common_notify_hpd_status(struct hdmitx_common *tx_comm, bool force_uevent);
/*packet api*/
/* packet api */
/* mode = 0 , disable allm; mode 1: set allm; mode -1: */
int hdmitx_common_set_allm_mode(struct hdmitx_common *tx_comm, int mode);
/* avmute function with lock:
/*
* avmute function with lock:
* do set mute when mute cmd from any path;
* do clear when all path have cleared avmute;
*/
@@ -370,6 +373,8 @@ __weak bool is_hdr10plus_enable(void)
}
#endif
/* work for bootup when hpd is high */
void hdmitx_bootup_plugin_work(struct hdmitx_common *tx_comm);
/* common work for plugin/resume, which is done in lock */
void hdmitx_plugin_common_work(struct hdmitx_common *tx_comm);
/* common work for plugout */
@@ -114,7 +114,6 @@ struct rx_cap {
/*vendor*/
u32 ieeeoui;
u8 Max_TMDS_Clock1; /* HDMI1.4b TMDS_CLK */
u16 physical_addr; /* CEC physical address */
u32 hf_ieeeoui; /* For HDMI Forum */
u32 Max_TMDS_Clock2; /* HDMI2.0 TMDS_CLK */
/* CEA861-F, Table 56, Colorimetry Data Block */
@@ -289,5 +288,7 @@ void hdmitx_edid_print(u8 *edid_buf);
void hdmitx_edid_buffer_clear(u8 *edid_buf, int size);
void hdmitx_edid_rxcap_clear(struct rx_cap *prxcap);
bool is_support_y422(struct rx_cap *prxcap);
void hdmitx_cec_phy_addr_parse(struct vsdb_phyaddr *vsdb_phy_addr, const u8 *edid_buf);
unsigned char hdmitx_edid_get_cta_block_count(const u8 *edid_buf);
int hdmitx_edid_audio_block_parse(struct rx_cap *prxcap, u8 *block_buf);
#endif
@@ -12,5 +12,6 @@
#include <linux/amlogic/media/vout/hdmitx_common/hdmitx_format_para.h>
#include <linux/amlogic/media/vout/hdmitx_common/hdmitx_hw_common.h>
#include <linux/amlogic/media/vout/hdmi_tx_ext.h>
#include <media/cec.h>
#endif