All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/edid: Refine HDMI VSDB detect
@ 2021-12-12 15:33 Lee Shawn C
  2021-12-13 12:30 ` Ville Syrjälä
  2021-12-23 13:02 ` Ville Syrjälä
  0 siblings, 2 replies; 9+ messages in thread
From: Lee Shawn C @ 2021-12-12 15:33 UTC (permalink / raw)
  To: dri-devel; +Cc: Lee Shawn C, Dave Airlie

According to CEA-861-F chapter 7.5.4. It says "The VSDB shall contain the
3 bytes of the IEEE OUI as well as any additional payload bytes needed."
Now DRM driver check HDMI OUI but VSDB payload size at least five bytes.
That may caused some HDMI monitors' audio feature can't be enabled.
Because of they only have three bytes payload (OUI only) in VSDB.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Adam Jackson <ajax@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
---
 drivers/gpu/drm/drm_edid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 12893e7be89b..5aa4a6bf4a13 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -4205,7 +4205,7 @@ static bool cea_db_is_hdmi_vsdb(const u8 *db)
 	if (cea_db_tag(db) != VENDOR_BLOCK)
 		return false;
 
-	if (cea_db_payload_len(db) < 5)
+	if (cea_db_payload_len(db) < 3)
 		return false;
 
 	return oui(db[3], db[2], db[1]) == HDMI_IEEE_OUI;
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-12-23 14:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-12 15:33 [PATCH] drm/edid: Refine HDMI VSDB detect Lee Shawn C
2021-12-13 12:30 ` Ville Syrjälä
2021-12-13 12:42   ` Lee, Shawn C
2021-12-13 12:45     ` Ville Syrjälä
2021-12-13 14:09     ` Lee, Shawn C
2021-12-13 14:36       ` Ville Syrjälä
2021-12-13 15:19       ` Lee, Shawn C
2021-12-23 13:02 ` Ville Syrjälä
2021-12-23 14:40   ` Lee, Shawn C

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.