]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i2c: tda998x: improve correctness of quantisation range
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 31 Jul 2018 10:12:27 +0000 (11:12 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 13 Jun 2019 20:55:07 +0000 (21:55 +0100)
commit148ddfa1cae5841c081cd0e72863064648a39983
treeebcf1113072ecfc261957e6c96ae08e19b81585f
parentbbd7e92a1e0f56282684a06adc3ab9d38f2f6871
drm/i2c: tda998x: improve correctness of quantisation range

CEA-861 says: "A Source shall not send a non-zero Q value that does
not correspond to the default RGB Quantization Range for the
transmitted Picture unless the Sink indicates support for the Q bit
in a Video Capabilities Data Block."

Make TDA998x compliant by using the helper to set the quantisation
range in the infoframe, and using the TDA998x's colour scaling to
appropriately adjust the RGB values sent to the monitor.

This ensures that monitors that do not support the Q bit are sent
RGB values that are within the expected range.  Monitors with
support for the Q bit will be sent full-range RGB.

Reviewed-by: Brian Starkey <brian.starkey@arm.com>
Tested-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c