[media] coda: implement encoder stop command
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 2 Mar 2017 09:51:44 +0000 (06:51 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 13:06:23 +0000 (10:06 -0300)
commit59195ceb2d3d1ef82589159be3652d11a902a215
treee9318e174f9f2cc6b3e3f52d37d273b6afd7e3c7
parentfbd4676cc2930ba40d507eaadf3ff06d3eba7e6a
[media] coda: implement encoder stop command

There is no need to call v4l2_m2m_try_schedule to kick off draining the
bitstream buffer for the encoder, but we have to wake up the destination
queue in case there are no new OUTPUT buffers to be encoded and userspace
is already polling for new CAPTURE buffers.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-common.c