drm/vc4: hdmi: Swap CSC matrix channels for YUV444
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 6 Mar 2023 10:46:46 +0000 (11:46 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 25 Apr 2023 07:33:16 +0000 (09:33 +0200)
commite3337aea097ffac21ccebd18114656eb88937517
tree23d5764deb094e4b0674b9f02a28990213b91235
parent7186004485c9b737faae5aad6b8118dd0bc0face
drm/vc4: hdmi: Swap CSC matrix channels for YUV444

YUV444 and YUV422 actually require the same matrix, but programmed
differently.

We've dealt with it in the past by having two matrices, with the one
for YUV444 reordered to accomodate the hardware.

This gets in the way of subsequent reworks so let's define a function
that will take the coefficients swap into account, and remove the now
redundant YUV444 matrix.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-5-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c