v4l2-compliance: require G/S_PRIORITY support for m2m devices
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 25 Aug 2014 12:53:47 +0000 (14:53 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Mon, 25 Aug 2014 12:53:47 +0000 (14:53 +0200)
M2M devices didn't support G/S_PRIORITY in the past, but after a
recent kernel change they gained prio support. While that was
actually unintended I realized that it does make sense there as well
since it makes it possible for a filehandle to get exclusive access
to the M2M hardware. So drop the exception for M2M devices.

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

index 28194d2..54e6053 100644 (file)
@@ -375,10 +375,6 @@ static int testPrio(struct node *node, struct node *node2)
        enum v4l2_priority prio;
        int err;
 
-       if (node->is_m2m) {
-               fail_on_test(doioctl(node, VIDIOC_G_PRIORITY, &prio) != ENOTTY);
-               return 0;
-       }
        err = check_prio(node, node2, V4L2_PRIORITY_DEFAULT);
        if (err)
                return err;