diff options
author | Paul Parsons <lost.distance@yahoo.com> | 2016-03-26 09:18:38 -0400 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-04-05 04:15:44 -0400 |
commit | f3a32d74ef733e1ed1a0b804c17ec27081e0ff37 (patch) | |
tree | ff5e55d68d99c64224a1fb9668c578d27e933716 | |
parent | 87707cfdc387681dc702f00dfcffc26ca0bc5f71 (diff) |
drm/edid: Fix parsing of EDID 1.4 Established Timings III descriptor
The EDID 1.4 specification section 3.10.3.9 defines an Established Timings III
descriptor (tag #F7h). The parsing of this descriptor by drm_est3_modes() is
off by one byte: the offset of the first timing bitmap is 6, not 5.
Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160328002258.E75DF6E35D@gabe.freedesktop.org
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 94541187c62a..c33edb0f23b2 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -2241,7 +2241,7 @@ drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing) | |||
2241 | { | 2241 | { |
2242 | int i, j, m, modes = 0; | 2242 | int i, j, m, modes = 0; |
2243 | struct drm_display_mode *mode; | 2243 | struct drm_display_mode *mode; |
2244 | u8 *est = ((u8 *)timing) + 5; | 2244 | u8 *est = ((u8 *)timing) + 6; |
2245 | 2245 | ||
2246 | for (i = 0; i < 6; i++) { | 2246 | for (i = 0; i < 6; i++) { |
2247 | for (j = 7; j >= 0; j--) { | 2247 | for (j = 7; j >= 0; j--) { |