[media] coda: Set last buffer flag and fix EOS event
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 4 May 2015 10:51:07 +0000 (07:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 12 May 2015 06:54:07 +0000 (03:54 -0300)
commit9f2bfb33a817459fdfe3277cdf864a2a4fe3ef7b
tree9f78a4b8c69f4f9472976f1ea41159976bc2f79a
parentc16218402a000bb25c1277c43ae98c11bcb59bd1
[media] coda: Set last buffer flag and fix EOS event

Setting the last buffer flag causes the videobuf2 core to return -EPIPE from
DQBUF calls on the capture queue after the last buffer is dequeued.
This patch also fixes the EOS event to conform to the specification. It now is
sent right after the last buffer has been decoded instead of when the last
buffer is dequeued.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-bit.c
drivers/media/platform/coda/coda-common.c
drivers/media/platform/coda/coda.h