drm/rockchip: inno_hdmi: Correctly setup HDMI quantization range
authorAlex Bee <knaerzche@gmail.com>
Fri, 22 Dec 2023 17:42:11 +0000 (18:42 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 29 Dec 2023 23:38:29 +0000 (00:38 +0100)
commit164abbd2b7ef62aae6fc80450a2d085acdc3da3e
tree72942e94d71e25a0ad44f2e7690dd9d12d5a04e5
parentceeb0f0104a62c867656c2730a51df47e7350b8f
drm/rockchip: inno_hdmi: Correctly setup HDMI quantization range

The display controller will always give full range RGB regardless of the
mode set, but HDMI requires certain modes to be transmitted in limited
range RGB. This is especially required for HDMI sinks which do not support
non-standard quantization ranges.

This enables color space conversion for those modes and sets the
quantization range accordingly in the AVI infoframe.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222174220.55249-21-knaerzche@gmail.com
drivers/gpu/drm/rockchip/inno_hdmi.c