drm/vc4: hdmi: Add a function to retrieve the CSC matrix
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 6 Mar 2023 10:46:48 +0000 (11:46 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 25 Apr 2023 07:33:16 +0000 (09:33 +0200)
commit1eaa6eedb8cf602476d3bf602e090fb26cbfaf1e
tree2b525058acd1b80a6cdbc3fceeb3bdaf6161b890
parent1d239901770ef8c31ed4ab7c45d6e8f5715783b6
drm/vc4: hdmi: Add a function to retrieve the CSC matrix

The CSC matrix to use depends on the output format, its range and the
colorspace.

Since we're going to add more colorspaces, let's move the CSC matrix
retrieval to a function.

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-7-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c