]> git.baikalelectronics.ru Git - kernel.git/commit
media: vivid: Set vid_cap_streaming and vid_out_streaming to true
authorVandana BN <bnvandana@gmail.com>
Mon, 9 Sep 2019 09:43:31 +0000 (06:43 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 19:54:55 +0000 (16:54 -0300)
commitcf1eb92232b711a6e0e210dac490867852a5eafd
tree6572c57e59659c1393e88c448c63535babeb44a2
parent1f2e86e97573d47a2b559118225d57ebd886d42f
media: vivid: Set vid_cap_streaming and vid_out_streaming to true

When vbi stream is started, followed by video streaming,
the vid_cap_streaming and vid_out_streaming were not being set to true,
which would cause the video stream to stop when vbi stream is stopped.
This patch allows to set vid_cap_streaming and vid_out_streaming to true.
According to Hans Verkuil it appears that these 'if (dev->kthread_vid_cap)'
checks are a left-over from the original vivid development and should never
have been there.

Signed-off-by: Vandana BN <bnvandana@gmail.com>
Cc: <stable@vger.kernel.org> # for v3.18 and up
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-vid-cap.c
drivers/media/platform/vivid/vivid-vid-out.c