v4l2-compliance: check for the presence of V4L2_CAP_EXT_PIX_FORMAT
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 17 Jul 2014 20:50:15 +0000 (22:50 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Thu, 17 Jul 2014 20:50:15 +0000 (22:50 +0200)
This cap is set by the core, so any driver that doesn't have it is
bypassing the v4l2 core.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-compliance/v4l2-compliance.cpp

index c7f3b66..2aeb236 100644 (file)
@@ -346,6 +346,9 @@ static int testCap(struct node *node)
        fail_on_test(caps == 0);
        fail_on_test(caps & V4L2_CAP_ASYNCIO);
        fail_on_test(!(caps & V4L2_CAP_DEVICE_CAPS));
+       // set by the core, so this really should always be there
+       // for a modern driver.
+       fail_on_test(!(caps & V4L2_CAP_EXT_PIX_FORMAT));
        fail_on_test(dcaps & V4L2_CAP_DEVICE_CAPS);
        fail_on_test(dcaps & ~caps);
        fail_on_test(!(dcaps & caps));