From: Russell King Date: Tue, 27 Aug 2013 00:27:42 +0000 (+0100) Subject: drm/i2c: tda998x: set VIF for full range, underscanned display X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=893c3e538dc338509b0c1121173355e8cfa34ff0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/i2c: tda998x: set VIF for full range, underscanned display Tested-by: Sebastian Hesselbarth Reviewed-by: Rob Clark Signed-off-by: Russell King --- diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 60e84043aa34..400b0c4a10fb 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -17,6 +17,7 @@ +#include #include #include @@ -549,6 +550,8 @@ tda998x_write_avi(struct drm_encoder *encoder, struct drm_display_mode *mode) buf[HB(0)] = 0x82; buf[HB(1)] = 0x02; buf[HB(2)] = 13; + buf[PB(1)] = HDMI_SCAN_MODE_UNDERSCAN; + buf[PB(3)] = HDMI_QUANTIZATION_RANGE_FULL << 2; buf[PB(4)] = drm_match_cea_mode(mode); tda998x_write_if(encoder, DIP_IF_FLAGS_IF2, REG_IF2_HB0, buf,