lantiq: VGV7510KW22BRN - set the phy clock source
[openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0170-bcm2835-camera-fix-a-bug-in-computation-of-frame-tim.patch
1 From c5cbb66686e7e289e8a7aff49a954f86893e628d 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 170/170] bcm2835-camera: fix a bug in computation of frame
5  timestamp
6
7 Fixes #1318
8 ---
9  drivers/media/platform/bcm2835/bcm2835-camera.c | 3 +--
10  1 file changed, 1 insertion(+), 2 deletions(-)
11
12 --- a/drivers/media/platform/bcm2835/bcm2835-camera.c
13 +++ b/drivers/media/platform/bcm2835/bcm2835-camera.c
14 @@ -360,8 +360,7 @@ static void buffer_cb(struct vchiq_mmal_
15                                 div =
16                                     div_u64_rem(runtime_us, USEC_PER_SEC, &rem);
17                                 buf->vb.timestamp.tv_sec =
18 -                                   dev->capture.kernel_start_ts.tv_sec - 1 +
19 -                                   div;
20 +                                   dev->capture.kernel_start_ts.tv_sec + div;
21                                 buf->vb.timestamp.tv_usec =
22                                     dev->capture.kernel_start_ts.tv_usec + rem;
23