drm/vc4: Fix VIC usage with Broadcast RGB
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 14 May 2020 13:44:15 +0000 (14:44 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:34:03 +0000 (16:34 +0100)
commit6aed18e3e95fbd0a0727c423c1f4f78372f279e0
tree2b5d3ff25a923ae7e47fa4e3c7ecda04f3575d27
parent281c25701774cb86920a0a6c8f3a3b31b5e24c2f
drm/vc4: Fix VIC usage with Broadcast RGB

Adding the Broadcast RGB range selection broke the VIC
field of the AVI infoframes on HDMI, zeroing them for all
modes on an HDMI monitor.

Correct this so that it is only zeroed if the range is
contrary to the standard range of the mode.

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