summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-01-19 04:24:06 +0400
committerAlejandro Mery <amery@geeks.cl>2013-01-24 20:28:59 +0400
commit558f7882b546175b2f868676264a315dfcab32ab (patch)
treeb8a49c324b5ee52903cd2e12760d1875e27ca644
parentff7839d06af13c151c95e7c23e060143d7a580e1 (diff)
downloadlinux-sunxi-558f7882b546175b2f868676264a315dfcab32ab.tar.xz
sunxi-hdmi: Fix data byte 3 of hdmi avi frame
Always set the IT content flag, to tell the display to not do scaling / filtering (which conflicts with for example computer rendered anti-aliased text). And for RGB colorspace also set the Full Range flag (pixel values go from 0-255). Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--drivers/video/sunxi/hdmi/hdmi_core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/sunxi/hdmi/hdmi_core.c b/drivers/video/sunxi/hdmi/hdmi_core.c
index bae0408a894a..1e2d841a0479 100644
--- a/drivers/video/sunxi/hdmi/hdmi_core.c
+++ b/drivers/video/sunxi/hdmi/hdmi_core.c
@@ -343,7 +343,11 @@ __s32 video_config(__s32 vic)
else
reg_val |= 0x28; /* 16 : 9 */
HDMI_WUINT8(0x085, reg_val); /* Data Byte 2 */
- HDMI_WUINT8(0x086, 0x00);
+#ifdef YUV_COLORSPACE /* Fix me */
+ HDMI_WUINT8(0x086, 0x80);
+#else
+ HDMI_WUINT8(0x086, 0x88);
+#endif
HDMI_WUINT8(0x087, (video_timing[vic_tab].VIC >=
HDMI_NON_CEA861D_START) ?
0 : video_timing[vic_tab].VIC);