[media] coda: first step at error recovery
authorLucas Stach <l.stach@pengutronix.de>
Wed, 5 Apr 2017 13:09:54 +0000 (10:09 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 12:03:51 +0000 (09:03 -0300)
commitfb2be08f8cb332ef142314cc58a0f9e68406588c
tree866971be59ae54e1dcf6d99f77f7229e28c652aa
parentf2011e40b67c10c7698a2e266672fa81b4b7ec47
[media] coda: first step at error recovery

This implements a simple handler for the case where decode did not finish
sucessfully. This might be helpful during normal streaming, but for now it
only handles the case where the context would deadlock with userspace,
i.e. userspace issued DEC_CMD_STOP and waits for EOS, but after the failed
decode run we would hold the context and wait for userspace to queue more
buffers.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-bit.c
drivers/media/platform/coda/coda-common.c
drivers/media/platform/coda/coda.h