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>
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;