drm/i915: Remove mostly duplicated video DIP handling from PSR code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Oct 2017 19:40:51 +0000 (22:40 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 17 Oct 2017 09:38:58 +0000 (12:38 +0300)
commit1d7765380f66648d979e33da92bbb49c64c12e61
tree2376c86dded36ffbedd4c27ded99b84f213cce3b
parent614ee07acfbb55f2debfc3223ffae97fee17ed14
drm/i915: Remove mostly duplicated video DIP handling from PSR code

Now that the infoframe hooks are part of the intel_dig_port, we can use
the normal .write_infoframe() hook to update the VSC SDP. We do need to
deal with the size difference between the VSC DIP and the others though.

Another minor snag is that the compiler will complain to use if we keep
using enum hdmi_infoframe_type type and passing in the DP define instead,
so et's just change to unsigned int all over for the inforframe type.

v2: Rebase due to other PSR changes

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171013194051.19286-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_psr.c