This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2-compliance: fix userptr and dmabuf streaming check
Author:  Hans Verkuil <[email protected]>
Date:    Fri Aug 28 11:36:23 2015 +0200

If stream I/O is not supported, then the reqbufs error check was wrong
for userptr and dmabuf streaming modes.

Signed-off-by: Hans Verkuil <[email protected]>

 utils/v4l2-compliance/v4l2-test-buffers.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=1be2de64f7d087ef2bf585d3179815a8e3de640c

diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp 
b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index 6fcda64..c054eef 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -1060,7 +1060,8 @@ int testUserPtr(struct node *node, unsigned frame_count)
 
                ret = q.reqbufs(node, 0);
                if (ret) {
-                       fail_on_test(ret != EINVAL);
+                       fail_on_test(!can_stream && ret != ENOTTY);
+                       fail_on_test(can_stream && ret != EINVAL);
                        return ENOTTY;
                }
                fail_on_test(!can_stream);
@@ -1173,7 +1174,8 @@ int testDmaBuf(struct node *expbuf_node, struct node 
*node, unsigned frame_count
 
                ret = q.reqbufs(node, 0);
                if (ret) {
-                       fail_on_test(ret != EINVAL);
+                       fail_on_test(!can_stream && ret != ENOTTY);
+                       fail_on_test(can_stream && ret != EINVAL);
                        return ENOTTY;
                }
                fail_on_test(!can_stream);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to