OSDN Git Service

drm/edid: add helper for HDMI VSDB audio latency field length
authorJani Nikula <jani.nikula@intel.com>
Wed, 4 Jan 2023 10:05:25 +0000 (12:05 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 19 Jan 2023 08:54:09 +0000 (10:54 +0200)
commitcba83c1fc38612c3d2c7b1bfed9d882e4848fb0d
tree01f6bbaacaf96c8df8abf86589ce9bfcf3e89cc5
parent1ee3e217f98e4a14a792ed2d7b42417ad1194922
drm/edid: add helper for HDMI VSDB audio latency field length

Add a helper for skipping the HDMI VSDB audio latency fields.

There's a functional change for HDMI VSDB blocks that do not respect the
spec: "I_Latency_Fields_Present shall be zero if Latency_Fields_Present
is zero". We assume this to hold when skipping the latency fields, and
ignore non-zero I_Latency_Fields_Present if Latency_Fields_Present is
zero.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/da4293203ef2ddeb0bf66a2bfdbc129ab609c543.1672826282.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c