v4l2-compliance: check that V4L2_CAP_ASYNCIO isn't used.
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 6 Aug 2012 12:05:54 +0000 (14:05 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Mon, 6 Aug 2012 12:05:54 +0000 (14:05 +0200)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-compliance/v4l2-compliance.cpp

index 9f9bdd7..e1d0da8 100644 (file)
@@ -280,6 +280,7 @@ static int testCap(struct node *node)
        dcaps = vcap.device_caps;
        node->is_m2m = dcaps & m2m_caps;
        fail_on_test(caps == 0);
+       fail_on_test(caps & V4L2_CAP_ASYNCIO);
        fail_on_test(!(caps & V4L2_CAP_DEVICE_CAPS));
        fail_on_test(dcaps & V4L2_CAP_DEVICE_CAPS);
        fail_on_test(dcaps & ~caps);