0555-BCM2835-v4l2-Fix-a-conformance-test-failure.patch 1017 B

12345678910111213141516171819202122232425
  1. From e94e99c9650e48f0de0399cf04ec3ae597f05ed2 Mon Sep 17 00:00:00 2001
  2. From: Dave Stevenson <6by9@users.noreply.github.com>
  3. Date: Wed, 30 Nov 2016 20:17:14 +0000
  4. Subject: [PATCH] BCM2835-v4l2: Fix a conformance test failure
  5. Format ioctls:
  6. test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
  7. warn: v4l2-test-formats.cpp(1195): S_PARM is supported but
  8. doesn't report V4L2_CAP_TIMEPERFRAME.
  9. fail: v4l2-test-formats.cpp(1118): node->has_frmintervals
  10. && !cap->capability
  11. ---
  12. drivers/media/platform/bcm2835/bcm2835-camera.c | 1 +
  13. 1 file changed, 1 insertion(+)
  14. --- a/drivers/media/platform/bcm2835/bcm2835-camera.c
  15. +++ b/drivers/media/platform/bcm2835/bcm2835-camera.c
  16. @@ -1397,6 +1397,7 @@ static int vidioc_s_parm(struct file *fi
  17. dev->capture.timeperframe = tpf;
  18. parm->parm.capture.timeperframe = tpf;
  19. parm->parm.capture.readbuffers = 1;
  20. + parm->parm.capture.capability = V4L2_CAP_TIMEPERFRAME;
  21. fps_param.num = 0; /* Select variable fps, and then use
  22. * FPS_RANGE to select the actual limits.