The S_STD test failed because the driver returned ENODATA. This is a
valid error code, but the test didn't check for it.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
return fail("STD cap not set, but could still set a standard\n");
std = V4L2_STD_ATSC;
ret = doioctl(node, VIDIOC_S_STD, &std);
- if (ret != EINVAL && ret != ENOTTY)
+ if (ret != ENODATA && ret != EINVAL && ret != ENOTTY)
return fail("could set standard to ATSC, which is not supported anymore\n");
for (i = 0; ; i++) {
memset(&enumstd, 0xff, sizeof(enumstd));