Don't test for 'step > (max - min)' for the continuous type. Step should
be ignored in that case.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
return fail("invalid min, max or step for frameinterval %d\n", f);
if (fract2f(&sw->min) > fract2f(&sw->max))
return fail("min > max\n");
- if (fract2f(&sw->step) > fract2f(&sw->max) - fract2f(&sw->min))
+ if (frmival.type == V4L2_FRMIVAL_TYPE_STEPWISE &&
+ fract2f(&sw->step) > fract2f(&sw->max) - fract2f(&sw->min))
return fail("step > (max - min)\n");
break;
default: