diff options
author | Erik Gilling <konkers@android.com> | 2011-02-06 19:32:17 -0800 |
---|---|---|
committer | Erik Gilling <konkers@android.com> | 2011-02-07 14:56:20 -0800 |
commit | cef13d98eb134defcfc125debf38cc6749e153c8 (patch) | |
tree | 697d243d2c99d80f29d27aa24a6045da50eb4b92 /drivers/video/fbmon.c | |
parent | 4a6469b9eb31fdbf9183417152af4ca151ddf230 (diff) |
video: fbmon: add HDMI dectetion to fbmod edid parsing
Looks for ieee registration numver 0x000c03 as per HDMI spec.
Change-Id: I6875b24c66e8754510edabcb4f9ba682a50d6ac1
Signed-off-by: Erik Gilling <konkers@android.com>
Diffstat (limited to 'drivers/video/fbmon.c')
-rw-r--r-- | drivers/video/fbmon.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c index 0841e6b27e5c..18dad1dd9fb7 100644 --- a/drivers/video/fbmon.c +++ b/drivers/video/fbmon.c @@ -1018,6 +1018,13 @@ void fb_edid_add_monspecs(unsigned char *edid, struct fb_monspecs *specs) num++; } } + } else if (tag == 0x3) { + if (len >= 3) { + u32 ieee_reg = block[0] | (block[1] << 8) | + (block[2] << 16); + if (ieee_reg == 0x000c03) + specs->misc |= FB_MISC_HDMI; + } } block += len; |