drm/vc4: hdmi: Use full range helper in csc functions
authorMaxime Ripard <maxime@cerno.tech>
Tue, 12 Jan 2021 14:57:50 +0000 (15:57 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:35 +0000 (16:04 +0000)
commit4bc9dbdde5c11320d1665d1d6208281c1ab634b6
treeb8fa66345bc58d73661b1ac58d1419425383474a
parentc67f155b3935558860525cefa95cb5447248ff42
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>
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h