drm/vc4: hdmi: Add property to allow manual config of RGB or YCbCr
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 14 Nov 2022 19:32:10 +0000 (19:32 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 12 Jan 2023 18:05:01 +0000 (18:05 +0000)
commit64039ee02ef6c90ddbecbb6e5b178aca64743710
tree67ccc1d24912bc9a0453b1a6a1ca401d02580911
parentf52e9005a72fa8cc6b34b4cec3150411bef7aa24
drm/vc4: hdmi: Add property to allow manual config of RGB or YCbCr

Add a custom property "Output format" that allows the overriding
of the default colourspace choice in the way that the old
firmware hdmi_pixel_encoding property did. If the chosen format is not
supported, then it will still drop back to the older behaviour.

This won't be acceptable to upstream, but it adds back the missing
functionality of hdmi_pixel_encoding.

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