In s_fmt_vid_cap, we should check if vb2_is_busy and return EBUSY,
not check if it's streaming to return the busy state.
Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
 {
        struct isc_device *isc = video_drvdata(file);
 
-       if (vb2_is_streaming(&isc->vb2_vidq))
+       if (vb2_is_busy(&isc->vb2_vidq))
                return -EBUSY;
 
        return isc_set_fmt(isc, f);