]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use mode values consistently when converting to sdvo dtd
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Apr 2012 16:27:57 +0000 (18:27 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 May 2012 09:34:59 +0000 (11:34 +0200)
commit63e7537f4fd9c09b196c3e5106421a1a65b47b46
treee9290c481038e5b36ddc030aa47ccb215dfef4e4
parent1dd5677b09703f629274b89725feb3b134e6df06
drm/i915: use mode values consistently when converting to sdvo dtd

The drm_mode->dtd conversion used the crtc timings, whereas the
dtd->drm_mod did not set these. Use the standard mode information, not
the crtc timings, in both cases to make these two functions proper
inverses of each another.

Note that this also kills the risk that we handle interlaced timings
inconsistently because the drm core uses half-frames for crtc timings,
whereas we need full frames. But interlaced support is pretty decently
broken anyway for sdvo encoders, so no big deal.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sdvo.c