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 <j...@mediatomb.cc>
Signed-off-by: Ezequiel Garcia <ezequiel.gar...@free-electrons.com>
---
Cc: Sergey 'Jin' Bostandzhyan <j...@mediatomb.cc>
Cc: Hans Verkuil <hans.verk...@cisco.com>

 drivers/media/usb/stk1160/stk1160-v4l.c | 3 ---
 1 file changed, 3 deletions(-)

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;
 
-- 
1.8.1.5

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to