aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2015-01-23 11:51:24 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-02 07:23:41 -0500
commit8c9ef6b16c433fd4850ef8f9dd74af36232ed055 (patch)
treeaa7aef16f718c60e2f498fdc6b4e3330d0da26d5 /drivers/media/platform/coda
parent811a6934c22e19f2bc9b4a280e8626af1a098721 (diff)
[media] coda: clear RET_DEC_PIC_SUCCESS flag in prepare_decode
To make sure a set RET_DEC_PIC_SUCCESS flag is not a leftover from a previous successful run, clear it in prepare_decode. 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>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r--drivers/media/platform/coda/coda-bit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c
index 6b00a45e84a4..d81635d272de 100644
--- a/drivers/media/platform/coda/coda-bit.c
+++ b/drivers/media/platform/coda/coda-bit.c
@@ -1666,6 +1666,9 @@ static int coda_prepare_decode(struct coda_ctx *ctx)
1666 1666
1667 coda_kfifo_sync_to_device_full(ctx); 1667 coda_kfifo_sync_to_device_full(ctx);
1668 1668
1669 /* Clear decode success flag */
1670 coda_write(dev, 0, CODA_RET_DEC_PIC_SUCCESS);
1671
1669 coda_command_async(ctx, CODA_COMMAND_PIC_RUN); 1672 coda_command_async(ctx, CODA_COMMAND_PIC_RUN);
1670 1673
1671 return 0; 1674 return 0;