aboutsummaryrefslogtreecommitdiffstats
path: root/utils/common/v4l-helpers.h
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2020-09-11 12:09:52 +0900
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-10-04 13:39:42 +0200
commitdc2b92a47c456d48063b953836cc365829b67868 (patch)
tree0881ebe0948844becbb7b00627a1ef68768976c7 /utils/common/v4l-helpers.h
parent749309117723ee4795d16ce4f744e4b099e4979a (diff)
v4l-compliance: remove NON_CONSISTENT hint test
Kernel support for V4L2_FLAG_MEMORY_NON_CONSISTENT has been reverted, so we need to to remove the memory consistency (coherency) tests from the test-buffers code. Note, the buffer cache management hints support is still there and should be tested. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: squashed this patch with the sync-to-kernel patch,] [hverkuil: otherwise bisect would fail]
Diffstat (limited to 'utils/common/v4l-helpers.h')
-rw-r--r--utils/common/v4l-helpers.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/common/v4l-helpers.h b/utils/common/v4l-helpers.h
index c09cd987..f96b3c38 100644
--- a/utils/common/v4l-helpers.h
+++ b/utils/common/v4l-helpers.h
@@ -1515,7 +1515,7 @@ static inline int v4l_queue_querybufs(struct v4l_fd *f, struct v4l_queue *q, uns
}
static inline int v4l_queue_reqbufs(struct v4l_fd *f,
- struct v4l_queue *q, unsigned count, unsigned int flags = 0)
+ struct v4l_queue *q, unsigned count)
{
struct v4l2_requestbuffers reqbufs;
int ret;
@@ -1523,7 +1523,6 @@ static inline int v4l_queue_reqbufs(struct v4l_fd *f,
reqbufs.type = q->type;
reqbufs.memory = q->memory;
reqbufs.count = count;
- reqbufs.flags = flags;
/*
* Problem: if REQBUFS returns an error, did it free any old
* buffers or not?
@@ -1548,7 +1547,7 @@ static inline bool v4l_queue_has_create_bufs(struct v4l_fd *f, const struct v4l_
static inline int v4l_queue_create_bufs(struct v4l_fd *f,
struct v4l_queue *q, unsigned count,
- const struct v4l2_format *fmt, unsigned int flags = 0)
+ const struct v4l2_format *fmt)
{
struct v4l2_create_buffers createbufs;
int ret;
@@ -1556,7 +1555,6 @@ static inline int v4l_queue_create_bufs(struct v4l_fd *f,
createbufs.format.type = q->type;
createbufs.memory = q->memory;
createbufs.count = count;
- createbufs.flags = flags;
if (fmt) {
createbufs.format = *fmt;
} else {
@@ -1735,7 +1733,7 @@ static inline void v4l_queue_free(struct v4l_fd *f, struct v4l_queue *q)
v4l_ioctl(f, VIDIOC_STREAMOFF, &q->type);
v4l_queue_release_bufs(f, q, 0);
v4l_queue_close_exported_fds(q);
- v4l_queue_reqbufs(f, q, 0, 0);
+ v4l_queue_reqbufs(f, q, 0);
}
static inline void v4l_queue_buffer_update(const struct v4l_queue *q,

Privacy Policy