media: cedrus: Forbid setting new formats on busy queues
commit9dacde5ed0645a8db2dbfd0951c24b9eed87cc60
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 14 Feb 2019 09:25:11 +0000 (14 04:25 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 20:33:02 +0000 (18 15:33 -0500)
tree569f76314aa885e1785fc26483ab3a518378fb6b
parentffaec3b21abcce537be166bd023f55986a5b2002
media: cedrus: Forbid setting new formats on busy queues

Check that our queues are not busy before setting the format or return
EBUSY if that's the case. This ensures that our format can't change
once buffers are allocated for the queue.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/sunxi/cedrus/cedrus_video.c