aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorAntonio Ospite <[email protected]>2016-03-09 13:03:19 -0300
committerMauro Carvalho Chehab <[email protected]>2016-07-08 14:58:46 -0300
commitc21f0cb400fc4aa864138863f97c194f7737c219 (patch)
treedc9583b66060727c9690d73af086199f01e2d6ed /tools/perf/scripts/python/net_dropmonitor.py
parentb3f18ec666082dd406d39871dd9bd14d736177ef (diff)
[media] gspca: fix a v4l2-compliance failure about buffer timestamp
v4l2-compliance fails with this message: fail: v4l2-test-buffers.cpp(250): \ timestamp != V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC && \ timestamp != V4L2_BUF_FLAG_TIMESTAMP_COPY ... test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL When setting the frame time, gspca uses v4l2_get_timestamp() which uses ktime_get_ts() which uses ktime_get_ts64() which returns a monotonic timestamp, so it's safe to initialize the buffer flags to V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC to fix the failure. Signed-off-by: Antonio Ospite <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions