]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitebf6b93f856ace892bf69ea57f2d6841277028ad
tree9f78a4b8c69f4f9472976f1ea41159976bc2f79a
parentd771de3ce76159e236ea56c3b94b9249d9b994fb
[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