OSDN Git Service

drm/edid: split HDMI VSDB info and mode parsing
authorJani Nikula <jani.nikula@intel.com>
Thu, 19 Jan 2023 16:18:54 +0000 (18:18 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 23 Jan 2023 09:46:39 +0000 (11:46 +0200)
commit919d320fb8c6a40669ef0eb64aa97326f192415d
tree1ffb8c4e8ef0e12304b6f5e7f4d65de0d65e068b
parent48865413c9ddab68a774b506b1940af0f6b6089d
drm/edid: split HDMI VSDB info and mode parsing

Separate the parsing of display info and modes from the HDMI VSDB. This
is prerequisite work for overall better separation of the two parsing
steps.

The info parsing is about figuring out whether the sink supports HDMI
infoframes. Since they were added in HDMI 1.4, assume the sink supports
HDMI infoframes if it has the HDMI_Video_present bit set (introduced in
HDMI 1.4). For details, see commit f1781e9bb2dd ("drm/edid: Allow HDMI
infoframe without VIC or S3D").

The logic is not exactly the same, but since it was somewhat heuristic
to begin with, assume this is close enough.

v2:
- Simplify to only check HDMI_Video_present bit (Ville)
- Drop cea_db_raw_size() helper (Ville)

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