]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit678856299c0db53c47bfcbedda7921d878a78be5
tree3dd2ce7c8931b69f606041cabaaedc39a47ea9f4
parent8fc58186bb41ff8789ad9e993c03a23d67698709
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