summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-01-19 04:24:04 +0400
committerAlejandro Mery <amery@geeks.cl>2013-01-24 20:28:58 +0400
commit49a9c5e45def814c31ab5b319ea24874d7884874 (patch)
tree6bb288eea6c68e542a012a38803b623e8dcdf2ee
parent4831211201b79d22a1b220b21481a8c2065d189d (diff)
downloadlinux-sunxi-49a9c5e45def814c31ab5b319ea24874d7884874.tar.xz
sunxi-hdmi: Fix data byte 1 of hdmi avi frame
Fix the low nibble of data byte 1 of hdmi avi frame, before this patch it was being set to 0 for YUV_COLORSPACE, which is wrong since that means no bar-data, no overscan-data. But we want to explicitly disable overscan so as to for example not make xfce's panel(s) go offscreen. And it was being set to e for RGB colorspace, which is wrong since that means both horz. and vert. bar-data, underscan. While the avi frame does not contain any (valid) bar data. This patch changes the low nibble to 2 for each case, or iow to: no bar-data, underscan. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--drivers/video/sunxi/hdmi/hdmi_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/sunxi/hdmi/hdmi_core.c b/drivers/video/sunxi/hdmi/hdmi_core.c
index 2985e90e6fc0..bebf76b1cc31 100644
--- a/drivers/video/sunxi/hdmi/hdmi_core.c
+++ b/drivers/video/sunxi/hdmi/hdmi_core.c
@@ -329,15 +329,13 @@ __s32 video_config(__s32 vic)
HDMI_WUINT8(0x082, 0x0d);
HDMI_WUINT8(0x083, 0x00);
#ifdef YUV_COLORSPACE /* Fix me */
- /* 4:4:4 YCbCr */
- HDMI_WUINT8(0x084, 0x50); /* Data Byte 1 */
+ HDMI_WUINT8(0x084, 0x52); /* Data Byte 1: 4:4:4 YCbCr */
if (video_timing[vic_tab].PCLK < 74250000) /* 4:3 601 */
HDMI_WUINT8(0x085, 0x58); /* Data Byte 2 */
else /* 16:9 709 */
HDMI_WUINT8(0x085, 0xa8); /* Data Byte 2 */
#else
- /* RGB */
- HDMI_WUINT8(0x084, 0x1E); /* Data Byte 1 */
+ HDMI_WUINT8(0x084, 0x12); /* Data Byte 1: RGB */
/* 4:3 601 */
HDMI_WUINT8(0x085, 0x58); /* Data Byte 2 */
#endif