video: tegra: Fix hdmi 2.0 length masking error
Arun Swain [Wed, 16 Sep 2015 19:28:13 +0000 (12:28 -0700)]
Mask length with 0x1f instead of 0x0f since
length is of 5 bits.

Bug 200122117

Change-Id: I317507e0ccf1ede503ab479ff0151b6c61ac3a13
Reviewed-on: http://git-master/r/802430
(cherry picked from commit 1ba569d7b0559c8a84bcf25a4a6c709ddc8e20aa)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821203
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

drivers/video/tegra/dc/sor_regs.h

index 78523c5..b1bb670 100644 (file)
@@ -19,7 +19,7 @@
 
 #define NV_SOR_HDMI_INFOFRAME_HEADER_TYPE(x)           ((x) & 0xff)
 #define NV_SOR_HDMI_INFOFRAME_HEADER_VERSION(x)                (((x) & 0xff) << 8)
-#define NV_SOR_HDMI_INFOFRAME_HEADER_LEN(x)            (((x) & 0xf) << 16)
+#define NV_SOR_HDMI_INFOFRAME_HEADER_LEN(x)            (((x) & 0x1f) << 16)
 #define NV_SOR_HDMI_BRICK_MUL(x)                       (((x) >> 2) & 0x1f)
 #define NV_SOR_HDMI_BRICK_DIV                          10