If the driver doesn't implement VIDIOC_DV_TIMINGS_CAP, then this test
failed when it should have returned OK.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
return fail("TIMINGS cap set, but could not get timings caps\n");
if (!ret && !has_timings)
return fail("TIMINGS cap not set, but could still get timings caps\n");
+ if (ret && !has_timings)
+ return 0;
if (check_0(timingscap.reserved, sizeof(timingscap.reserved)))
return fail("reserved not zeroed\n");
fail_on_test(timingscap.type != V4L2_DV_BT_656_1120);