diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-08-03 09:22:54 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-03 17:43:10 -0700 |
commit | ebec9a7bf11f843b0602b06c402f04bf4213b35a (patch) | |
tree | dc99677c052f3a24bf55a87f9b88067f3de70102 /drivers/gpu | |
parent | 4e20fa65a3ea789510eed1a15deb9e8aab2b8202 (diff) | |
download | linux-stable-ebec9a7bf11f843b0602b06c402f04bf4213b35a.tar.gz linux-stable-ebec9a7bf11f843b0602b06c402f04bf4213b35a.tar.bz2 linux-stable-ebec9a7bf11f843b0602b06c402f04bf4213b35a.zip |
drm: track CEA version number if present
Drivers need to know the CEA version number in addition to other display
info (like whether the display is an HDMI sink) before enabling certain
features. So track the CEA version number in the display info
structure.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 09292193dafe..e12f8b0cec94 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -1439,6 +1439,8 @@ EXPORT_SYMBOL(drm_detect_monitor_audio); static void drm_add_display_info(struct edid *edid, struct drm_display_info *info) { + u8 *edid_ext; + info->width_mm = edid->width_cm * 10; info->height_mm = edid->height_cm * 10; @@ -1483,6 +1485,13 @@ static void drm_add_display_info(struct edid *edid, info->color_formats = DRM_COLOR_FORMAT_YCRCB444; if (info->color_formats & DRM_EDID_FEATURE_RGB_YCRCB422) info->color_formats = DRM_COLOR_FORMAT_YCRCB422; + + /* Get data from CEA blocks if present */ + edid_ext = drm_find_cea_extension(edid); + if (!edid_ext) + return; + + info->cea_rev = edid_ext[1]; } /** |