0162-bcm2835-camera-fix-a-bug-in-computation-of-frame-tim.patch 830 B

1234567891011121314151617181920212223
  1. From bece84be8a851aca4baff1b63a8a2c92866754d5 Mon Sep 17 00:00:00 2001
  2. From: Dhiraj Goel <dhiraj.goel@gmail.com>
  3. Date: Thu, 3 Mar 2016 21:10:50 -0800
  4. Subject: [PATCH 162/381] bcm2835-camera: fix a bug in computation of frame
  5. timestamp
  6. Fixes #1318
  7. ---
  8. drivers/media/platform/bcm2835/bcm2835-camera.c | 3 +--
  9. 1 file changed, 1 insertion(+), 2 deletions(-)
  10. --- a/drivers/media/platform/bcm2835/bcm2835-camera.c
  11. +++ b/drivers/media/platform/bcm2835/bcm2835-camera.c
  12. @@ -360,8 +360,7 @@ static void buffer_cb(struct vchiq_mmal_
  13. div =
  14. div_u64_rem(runtime_us, USEC_PER_SEC, &rem);
  15. buf->vb.timestamp.tv_sec =
  16. - dev->capture.kernel_start_ts.tv_sec - 1 +
  17. - div;
  18. + dev->capture.kernel_start_ts.tv_sec + div;
  19. buf->vb.timestamp.tv_usec =
  20. dev->capture.kernel_start_ts.tv_usec + rem;