Skip to content

Commit afb31b9

Browse files
Zheng Yangjayxurockchip
authored andcommitted
Revert "FROMLIST: drm: edid: HDMI 2.0 HF-VSDB block parsing"
This reverts commit 6e9aa00. UPSTREAM code has support parsing HDMI.20 HF-VSDB. Change-Id: Ia25ee6a92e9a2fee4b3356446c1198e938c5e74d Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
1 parent 31fa2ab commit afb31b9

4 files changed

Lines changed: 0 additions & 66 deletions

File tree

drivers/gpu/drm/drm_edid.c

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3467,21 +3467,6 @@ static bool cea_db_is_hdmi_vsdb(const u8 *db)
34673467
return hdmi_id == HDMI_IEEE_OUI;
34683468
}
34693469

3470-
static bool cea_db_is_hdmi_hf_vsdb(const u8 *db)
3471-
{
3472-
int hdmi_id;
3473-
3474-
if (cea_db_tag(db) != VENDOR_BLOCK)
3475-
return false;
3476-
3477-
if (cea_db_payload_len(db) < 7)
3478-
return false;
3479-
3480-
hdmi_id = db[1] | (db[2] << 8) | (db[3] << 16);
3481-
3482-
return hdmi_id == HDMI_IEEE_OUI_HF;
3483-
}
3484-
34853470
static bool cea_db_is_hdmi_vdb420(const u8 *db)
34863471
{
34873472
if (cea_db_tag(db) != VIDEO_CAPABILITY_BLOCK)
@@ -3648,36 +3633,6 @@ drm_parse_hdmi_vsdb_audio(struct drm_connector *connector, const u8 *db)
36483633
connector->audio_latency[1]);
36493634
}
36503635

3651-
static void
3652-
parse_hdmi_hf_vsdb(struct drm_connector *connector, const u8 *db)
3653-
{
3654-
u8 len = cea_db_payload_len(db);
3655-
3656-
if (len < 7)
3657-
return;
3658-
3659-
if (db[4] != 1)
3660-
return; /* invalid version */
3661-
3662-
connector->max_tmds_char = db[5] * 5;
3663-
connector->scdc_present = db[6] & (1 << 7);
3664-
connector->rr_capable = db[6] & (1 << 6);
3665-
connector->flags_3d = db[6] & 0x7;
3666-
connector->lte_340mcsc_scramble = db[6] & (1 << 3);
3667-
3668-
DRM_DEBUG_KMS("HDMI v2: max TMDS clock %d, "
3669-
"scdc %s, "
3670-
"rr %s, "
3671-
"3D flags 0x%x, "
3672-
"scramble %s\n",
3673-
connector->max_tmds_char,
3674-
connector->scdc_present ? "available" : "not available",
3675-
connector->rr_capable ? "capable" : "not capable",
3676-
connector->flags_3d,
3677-
connector->lte_340mcsc_scramble ?
3678-
"supported" : "not supported");
3679-
}
3680-
36813636
static void
36823637
monitor_name(struct detailed_timing *t, void *data)
36833638
{
@@ -3769,9 +3724,6 @@ void drm_edid_to_eld(struct drm_connector *connector, struct edid *edid)
37693724
/* HDMI Vendor-Specific Data Block */
37703725
if (cea_db_is_hdmi_vsdb(db))
37713726
drm_parse_hdmi_vsdb_audio(connector, db);
3772-
/* HDMI Forum Vendor-Specific Data Block */
3773-
else if (cea_db_is_hdmi_hf_vsdb(db))
3774-
parse_hdmi_hf_vsdb(connector, db);
37753727
break;
37763728
default:
37773729
break;

include/drm/drm_crtc.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -786,11 +786,6 @@ struct drm_encoder {
786786
* @audio_latency: audio latency info from ELD, if found
787787
* @null_edid_counter: track sinks that give us all zeros for the EDID
788788
* @bad_edid_counter: track sinks that give us an EDID with invalid checksum
789-
* @max_tmds_char: indicates the maximum TMDS Character Rate supported
790-
* @scdc_present: when set the sink supports SCDC functionality
791-
* @rr_capable: when set the sink is capable of initiating an SCDC read request
792-
* @lte_340mcsc_scramble: when set the sink supports less than 340Mcsc scramble
793-
* @flags_3d: 3D view(s) supported by the sink, see drm_edid.h (DRM_EDID_3D_*)
794789
* @edid_corrupt: indicates whether the last read EDID was corrupt
795790
* @debugfs_entry: debugfs directory for this connector
796791
* @state: current atomic state for this connector
@@ -864,13 +859,6 @@ struct drm_connector {
864859
int null_edid_counter; /* needed to workaround some HW bugs where we get all 0s */
865860
unsigned bad_edid_counter;
866861

867-
/* EDID bits HDMI 2.0 */
868-
int max_tmds_char; /* in Mcsc */
869-
bool scdc_present;
870-
bool rr_capable;
871-
bool lte_340mcsc_scramble;
872-
int flags_3d;
873-
874862
/* Flag for raw EDID header corruption - used in Displayport
875863
* compliance testing - * Displayport Link CTS Core 1.2 rev1.1 4.2.2.6
876864
*/

include/drm/drm_edid.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,6 @@ struct detailed_timing {
266266

267267
#define DRM_ELD_CEA_SAD(mnl, sad) (20 + (mnl) + 3 * (sad))
268268

269-
/* HDMI 2.0 */
270-
#define DRM_EDID_3D_INDEPENDENT_VIEW (1 << 2)
271-
#define DRM_EDID_3D_DUAL_VIEW (1 << 1)
272-
#define DRM_EDID_3D_OSD_DISPARITY (1 << 0)
273-
274269
struct edid {
275270
u8 header[8];
276271
/* Vendor & product info */

include/linux/hdmi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ enum hdmi_infoframe_type {
3636

3737
#define HDMI_IEEE_OUI 0x000c03
3838
#define HDMI_FORUM_IEEE_OUI 0xc45dd8
39-
#define HDMI_IEEE_OUI_HF 0xc45dd8
4039
#define HDMI_INFOFRAME_HEADER_SIZE 4
4140
#define HDMI_AVI_INFOFRAME_SIZE 13
4241
#define HDMI_SPD_INFOFRAME_SIZE 25

0 commit comments

Comments
 (0)