video: fbmon: fix hdmi VSDB detection
Subsystems (2)
PATCH 1/1 video: fbmon: fix hdmi VSDB detection
The IEEE OUI begins at the byte after the type/length byte, not at that byte.
This code first appeared at:
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=commitdiff;h=cef13d98eb134defcfc125debf38cc6749e153c8
At that time, block[] (now edid[]) pointed at the first byte after the type/length byte. Now that it points at the type/length byte, the offsets need adjustment.
Signed-off-by Stephen Warren <[email protected]>
---
This patch to non-Tegra code fixes an issue in code that's only present in non-upstream patches in various of the Android/Tegra branches.
This particular patch is against the ChromeOS kernel, so you may need slight fuzz when applying it to the various Android/Tegra branches.
drivers/video/fbmon.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/video/fbmon.c +3 -2
@@ -1010,8 +1010,9 @@ void fb_edid_add_monspecs(unsigned char *edid, struct fb_monspecs *specs) }else if (type ==0x3 ) {if (len >=3 ) { -u32 ieee_reg = edid[pos] | (edid[pos+1 ] <<8 ) | - (edid[pos+2 ] <<16 ); +u32 ieee_reg = edid[pos+1 ] | + (edid[pos+2 ] <<8 ) | + (edid[pos+3 ] <<16 );if (ieee_reg ==0x000c03 ) specs->misc |=FB_MISC_HDMI ; }
Signature · 1 line
1.7.0.4