drm/vc4: hdmi: Use full range helper in csc functions
authorMaxime Ripard <maxime@cerno.tech>
Thu, 20 Jan 2022 15:16:15 +0000 (16:16 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 25 Jan 2022 09:02:36 +0000 (10:02 +0100)
commitdccb4d74e06dd7ef758e8dd69a5420d0f3a9fb9f
tree560e723e086336fbe0eb7bdcb5cc93c433ff6829
parenta649cc821a2a2ee2e38d93426e92d6e88f7e4cbe
drm/vc4: hdmi: Use full range helper in csc functions

The CSC callbacks takes a boolean as an argument to tell whether we're
using the full range or limited range RGB.

However, with the upcoming YUV support, the logic will be a bit more
complex. In order to address this, let's make the callbacks take the
entire mode, and call our new helper to tell whether the full or limited
range RGB should be used.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220120151625.594595-7-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h