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

12345678910111213141516171819202122
  1. From 6760ab7eda42c3fba4a8057a51d7cb17fa5d4c5e 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] bcm2835-camera: fix a bug in computation of frame timestamp
  5. Fixes #1318
  6. ---
  7. drivers/media/platform/bcm2835/bcm2835-camera.c | 3 +--
  8. 1 file changed, 1 insertion(+), 2 deletions(-)
  9. --- a/drivers/media/platform/bcm2835/bcm2835-camera.c
  10. +++ b/drivers/media/platform/bcm2835/bcm2835-camera.c
  11. @@ -360,8 +360,7 @@ static void buffer_cb(struct vchiq_mmal_
  12. div =
  13. div_u64_rem(runtime_us, USEC_PER_SEC, &rem);
  14. buf->vb.timestamp.tv_sec =
  15. - dev->capture.kernel_start_ts.tv_sec - 1 +
  16. - div;
  17. + dev->capture.kernel_start_ts.tv_sec + div;
  18. buf->vb.timestamp.tv_usec =
  19. dev->capture.kernel_start_ts.tv_usec + rem;