v4l2-compliance: fix a VIDIOC_S_STD test
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 30 Aug 2011 10:59:22 +0000 (12:59 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Tue, 30 Aug 2011 10:59:22 +0000 (12:59 +0200)
One S_STD test needed to test against ENOTTY as well.

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

index d898b4f..907c37f 100644 (file)
@@ -59,7 +59,7 @@ static int checkStd(struct node *node, bool has_std, v4l2_std_id mask)
                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)
+       if (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));