drm/vc4: hdmi: Add CSC for BT601/709/2020 limited and full range output
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 7 Mar 2022 15:19:38 +0000 (15:19 +0000)
committerPhil Elwell <phil@raspberrypi.com>
Tue, 22 Mar 2022 15:57:46 +0000 (15:57 +0000)
commit90d92fa720156da635be6320bd7f13c1a3a9fe8e
tree3affb975ed8f33c11b57ec59dc90b561ff4754d7
parent19eba34ac7cbf8af662fa8b01d8dcaf96c5f651c
drm/vc4: hdmi: Add CSC for BT601/709/2020 limited and full range output

The HVS always composes in the RGB domain, but there is a colourspace
conversion block on the output to allow for sending YCbCr over the
HDMI interface.
The colourspace on that link is configurable via the "Colorspace"
property on the connector, and that updates the infoframes. There
is also selection of limited or full range based on the mode selected
or an override.

Add code to update the CSC as well so that the metadata matches the
image data.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_hdmi.c