]> 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)
commit6c61d177aa3453cf5e4aeb905e8d9ba799db44d0
tree560e723e086336fbe0eb7bdcb5cc93c433ff6829
parente44928f27c04a89b6b31ef2840b06fbd529e9811
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