]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx: Remove incorrect check for queue state in start/stop_streaming
authorIan Jamison <ian.dev@arkver.com>
Fri, 1 Dec 2017 18:53:50 +0000 (13:53 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 15:38:44 +0000 (10:38 -0500)
commitb81cc3831ddd7aa6b1ed90f80e7c536237ecb267
tree3dd2ce7c8931b69f606041cabaaedc39a47ea9f4
parentfe8062085dd46d818ebb5886d19e524e6d62801c
media: imx: Remove incorrect check for queue state in start/stop_streaming

It is possible to call STREAMON without the minimum number of
buffers queued. In this case the vb2_queue state will be set to
streaming but the start_streaming vb2_op will not be called.
Later when enough buffers are queued, start_streaming will
be called but vb2_is_streaming will already return true.

Also removed the queue state check in stop_streaming since it's
not valid there either.

Signed-off-by: Ian Jamison <ian.dev@arkver.com>
Reviewed-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/imx/imx-media-capture.c