diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-10-27 21:22:58 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-01-20 11:06:17 +0200 |
commit | 77666b72260da3a5290471de77e2d2261244db83 (patch) | |
tree | 839ee4152c6cd89b2de4f442bd77187640bc4e81 | |
parent | 265d09aa8254c0a8fc9c2d7ecb0b440e92961e72 (diff) | |
download | talos-obmc-linux-77666b72260da3a5290471de77e2d2261244db83.tar.gz talos-obmc-linux-77666b72260da3a5290471de77e2d2261244db83.zip |
drm: Use crtc_clock in drm_calc_timestamping_constants()
drm_calc_timestamping_constants() computes the pixel/line/frame
durations based on the crtc_ timing values. The corresponding pixel
clock is in mode->crtc_clock, so we need to use that instead of
mode->clock.
This should fix drm_calc_timestamping_constants() for frame packing
stereo modes.
Reviewed-by: mario.kleiner.de@gmail.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 3283669a9083..52a234c4160e 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c @@ -451,7 +451,7 @@ void drm_calc_timestamping_constants(struct drm_crtc *crtc, const struct drm_display_mode *mode) { s64 linedur_ns = 0, pixeldur_ns = 0, framedur_ns = 0; - int dotclock = mode->clock; + int dotclock = mode->crtc_clock; /* Fields of interlaced scanout modes are only half a frame duration. * Double the dotclock to get half the frame-/line-/pixelduration. |