fe2a76df913c7b719d27ffd43037bd299bfa6049
[openwrt/staging/neocturne.git] /
1 From 1cbfa86f148c2ab519b04ce9a3e3b21a9cb51f2e Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Tue, 15 Jan 2019 16:32:33 +0000
4 Subject: [PATCH 316/773] staging: bcm2835-camera: Set the field value within
5 each buffer
6
7 Fixes a v4l2-compliance failure
8 v4l2-test-buffers.cpp(415): g_field() == V4L2_FIELD_ANY
9
10 The driver only ever produces progresive frames, so field should
11 always be set to V4L2_FIELD_NONE.
12
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
14 ---
15 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 1 +
16 1 file changed, 1 insertion(+)
17
18 --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
19 +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
20 @@ -443,6 +443,7 @@ static void buffer_cb(struct vchiq_mmal_
21 }
22 dev->capture.last_timestamp = buf->vb.vb2_buf.timestamp;
23 buf->vb.sequence = dev->capture.sequence++;
24 + buf->vb.field = V4L2_FIELD_NONE;
25
26 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, mmal_buf->length);
27 if (mmal_buf->mmal_flags & MMAL_BUFFER_HEADER_FLAG_KEYFRAME)