From: Ezequiel Garcia Date: Wed, 17 Jul 2013 07:43:22 +0000 (-0300) Subject: [media] stk1160: Allow to change input while streaming X-Git-Tag: upstream/snapshot3+hdmi~3461^2~800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9928ac7cddd5db4cdf3121f1992192adb41df9c3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [media] stk1160: Allow to change input while streaming Remove the check as there's no reason to prevent the input from being set when the device is streaming. This allows surveillance applications (such as motion, zoneminder, etc.) to configure the input while streaming. Reported-by: Sergey 'Jin' Bostandzhyan Signed-off-by: Ezequiel Garcia Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/stk1160/stk1160-v4l.c b/drivers/media/usb/stk1160/stk1160-v4l.c index 876fc26..ee46d82 100644 --- a/drivers/media/usb/stk1160/stk1160-v4l.c +++ b/drivers/media/usb/stk1160/stk1160-v4l.c @@ -440,9 +440,6 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int i) { struct stk1160 *dev = video_drvdata(file); - if (vb2_is_busy(&dev->vb_vidq)) - return -EBUSY; - if (i > STK1160_MAX_INPUT) return -EINVAL;