aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda/coda.h
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-04-05 10:09:54 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-20 09:03:51 -0300
commitfb2be08f8cb332ef142314cc58a0f9e68406588c (patch)
tree866971be59ae54e1dcf6d99f77f7229e28c652aa /drivers/media/platform/coda/coda.h
parent[media] coda: use correct offset for mvcol buffer (diff)
downloadlinux-dev-fb2be08f8cb332ef142314cc58a0f9e68406588c.tar.xz
linux-dev-fb2be08f8cb332ef142314cc58a0f9e68406588c.zip
[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>
Diffstat (limited to 'drivers/media/platform/coda/coda.h')
-rw-r--r--drivers/media/platform/coda/coda.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/coda.h b/drivers/media/platform/coda/coda.h
index 76d059431ca1..40fe22f0d757 100644
--- a/drivers/media/platform/coda/coda.h
+++ b/drivers/media/platform/coda/coda.h
@@ -183,6 +183,7 @@ struct coda_context_ops {
int (*start_streaming)(struct coda_ctx *ctx);
int (*prepare_run)(struct coda_ctx *ctx);
void (*finish_run)(struct coda_ctx *ctx);
+ void (*error_run)(struct coda_ctx *ctx);
void (*seq_end_work)(struct work_struct *work);
void (*release)(struct coda_ctx *ctx);
};