]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7f42f54f52f8d46c8bbeeb22a7b5efea432667a
tree560e723e086336fbe0eb7bdcb5cc93c433ff6829
parent38d15e76c96bbde1ce1a4418adb07c34810e266f
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