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: m2m streaming fixes
Author:  Hans Verkuil <[email protected]>
Date:    Fri Jun 5 16:18:48 2015 +0200

When obtaining the current format, explicit set the type otherwise it will
take it from the node which is not what you want for m2m devices.

Also call reqbufs again after calling create_bufs: the number of buffers for
CAPTURE and OUTPUT must be the same, and they no longer are after the call to
create_bufs.

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

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

---

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

diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp 
b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index 024e96a..84ffce8 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -901,8 +901,7 @@ int testMmap(struct node *node, unsigned frame_count)
                // Good check for whether all the internal vb2 calls are in
                // balance.
                fail_on_test(q.reqbufs(node, q.g_buffers()));
-               cur_fmt.s_type(q.g_type());
-               node->g_fmt(cur_fmt);
+               fail_on_test(node->g_fmt(cur_fmt, q.g_type()));
 
                ret = q.create_bufs(node, 0);
                fail_on_test(ret != ENOTTY && ret != 0);
@@ -924,6 +923,7 @@ int testMmap(struct node *node, unsigned frame_count)
                                        fmt.s_sizeimage(fmt.g_sizeimage(p) * 2, 
p);
                        }
                        fail_on_test(q.create_bufs(node, 1, &fmt));
+                       fail_on_test(q.reqbufs(node, 2));
                }
                fail_on_test(setupMmap(node, q));
 

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

Reply via email to