drm/i915/sdvo: Precompute HDMI infoframes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 25 Feb 2019 17:41:03 +0000 (19:41 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 26 Feb 2019 17:54:48 +0000 (19:54 +0200)
commit769be632d42b7b82998c59370ffb5ddfcc76762e
tree17a152b29407be3c33e4a91674ef97de4a4ee0e6
parentf2a10d61ca7864088a3cb47bc57a8149ded55e08
drm/i915/sdvo: Precompute HDMI infoframes

As with regular HDMI encoders, let's precompute the infoframes
(actually just AVI infoframe for the time being) with SDVO HDMI
encoders.

v2: Drop the WARN_ON() from drm_hdmi_avi_infoframe_from_display_mode()
    return since that could genuinely fail due to user asking
    for incompatible aspect ratio
v3: .compute_config() now returns int

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190225174106.2163-7-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_sdvo.c