]> 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)
commit3630cb1998a96f2001470a641472643c9b5d33f4
tree9f78a4b8c69f4f9472976f1ea41159976bc2f79a
parent92361cd27190ccebeb5e59e02666452882e9d644
[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