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)
commitc6ebd4c015a80991fe149a6a003ae4c83386e00e
treee9290c481038e5b36ddc030aa47ccb215dfef4e4
parentf7bacf195e100a028eaa26c4b5f5e07665d51cee
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