mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -437,6 +437,8 @@ struct file;
|
||||
|
||||
#define FB_MISC_PRIM_COLOR 1
|
||||
#define FB_MISC_1ST_DETAIL 2 /* First Detailed Timing is preferred */
|
||||
#define FB_MISC_HDMI 4 /* display supports HDMI signaling */
|
||||
|
||||
struct fb_chroma {
|
||||
__u32 redx; /* in fraction of 1024 */
|
||||
__u32 greenx;
|
||||
|
||||
Reference in New Issue
Block a user