Commit 9928ac7c authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Mauro Carvalho Chehab

[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: default avatarSergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
Signed-off-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent fb8d61c9
...@@ -440,9 +440,6 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int i) ...@@ -440,9 +440,6 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int i)
{ {
struct stk1160 *dev = video_drvdata(file); struct stk1160 *dev = video_drvdata(file);
if (vb2_is_busy(&dev->vb_vidq))
return -EBUSY;
if (i > STK1160_MAX_INPUT) if (i > STK1160_MAX_INPUT)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment