drm/nouveau: set RGB quantization range to FULL
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Nov 2021 15:58:42 +0000 (16:58 +0100)
committerKarol Herbst <kherbst@redhat.com>
Fri, 12 Nov 2021 22:46:05 +0000 (23:46 +0100)
commit393534f291d821779203cb74896abc26e07160d6
tree51ef474d59733fb18ebaae87b299f36646eef2f8
parentd50d16036fb395aaa3c4ca0333b55cceadc81874
drm/nouveau: set RGB quantization range to FULL

The nouveau driver outputs full range RGB, but the AVI InfoFrame just says
'Default' instead of 'Full'.

Call drm_hdmi_avi_infoframe_quant_range to fill in the quantization field
of the AVI InfoFrame correctly. Now displays that advertise RGB Selectable
Quantization Range in their EDID will understand that full range is
transmitted by the HDMI output. This is consistent to how the Nvidia's
driver behaves.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e9a4a58a-0500-50f6-58cc-938a253cedeb@xs4all.nl
drivers/gpu/drm/nouveau/dispnv50/disp.c