diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2017-03-03 09:12:48 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-03-22 10:06:25 -0300 |
commit | 331e7860f3da430500559c665bd0ea63260fc9dc (patch) | |
tree | 4a7752b74c201826b69a94fd3e4611c1191a342c /drivers/media/platform/coda/coda.h | |
parent | 888708b1decb7d12e09095cd67e5b6442401cd51 (diff) | |
download | blackbird-op-linux-331e7860f3da430500559c665bd0ea63260fc9dc.tar.gz blackbird-op-linux-331e7860f3da430500559c665bd0ea63260fc9dc.zip |
[media] coda: keep queued buffers on a temporary list during start_streaming
Keeping buffers filled into the bitstream on a temporary list instead of
immediately calling vb2_buffer_done on each of them immediately allows
start_streaming to correctly decide whether they should be marked as
done or requeued if an error occurs after the bitstream has been filled.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda.h b/drivers/media/platform/coda/coda.h index 4b831c91ae4a..6aa9c19c4a89 100644 --- a/drivers/media/platform/coda/coda.h +++ b/drivers/media/platform/coda/coda.h @@ -259,7 +259,7 @@ int coda_decoder_queue_init(void *priv, struct vb2_queue *src_vq, int coda_hw_reset(struct coda_ctx *ctx); -void coda_fill_bitstream(struct coda_ctx *ctx, bool streaming); +void coda_fill_bitstream(struct coda_ctx *ctx, struct list_head *buffer_list); void coda_set_gdi_regs(struct coda_ctx *ctx); |