drm/i915/hdmi: Introduce intel_hdmi_is_ycbr420()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Oct 2021 13:39:03 +0000 (16:39 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 21 Oct 2021 19:22:58 +0000 (22:22 +0300)
commitbb115220d248e394a65a52e128dbb8096c9c8868
tree661e24a6650dd6e875c8997955233008c131b840
parent3cf460bd683df848c3df90b9bd6c28bc86acea8a
drm/i915/hdmi: Introduce intel_hdmi_is_ycbr420()

Introduce a small helper which given the crtc state tells us
whether we're output YCbCr 4:2:0 or not. For native HDMI this
is rather simple as we just look at the output_format. But I
think the helper is beneficial since with DP HDMI DFPs we're
going to need a more complex variant, and I want to unify the
DP and HDMI sides of that as much as possible.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211015133921.4609-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_hdmi.c