]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KMS: fix EDID detailed timing vsync parsing
authorTorsten Duwe <torsten@lst.de>
Sat, 23 Mar 2013 14:38:22 +0000 (15:38 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 23 Mar 2013 17:46:10 +0000 (10:46 -0700)
commit16dad1d743d31a104a849c8944e6b9eb479f6cd7
treeb8e155a97e373a4f09490c8945dace8e4e91a592
parent5da273fe3fd137c6ae4acf74b7449500f5e4dc09
KMS: fix EDID detailed timing vsync parsing

EDID spreads some values across multiple bytes; bit-fiddling is needed
to retrieve these.  The current code to parse "detailed timings" has a
cut&paste error that results in a vsync offset of at most 15 lines
instead of 63.

See

   http://en.wikipedia.org/wiki/EDID

and in the "EDID Detailed Timing Descriptor" see bytes 10+11 show why
that needs to be a left shift.

Cc: stable@vger.kernel.org
Signed-off-by: Torsten Duwe <duwe@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/drm_edid.c