diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2019-06-18 12:45:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-24 14:45:06 -0400 |
commit | d09ed310142af3e87359620d12f256969f8de439 (patch) | |
tree | f74f25a897b8a8238b8a979b1ba39815978e5ca2 /drivers/media/platform/coda/coda.h | |
parent | 9ee50a9489f16048a82c94139f5436f4bb2620d9 (diff) | |
download | linux-stable-d09ed310142af3e87359620d12f256969f8de439.tar.gz linux-stable-d09ed310142af3e87359620d12f256969f8de439.tar.bz2 linux-stable-d09ed310142af3e87359620d12f256969f8de439.zip |
media: coda: mark last pending buffer or last meta on decoder stop command
If there is still a buffer pending, mark it as the last buffer. It will
create a meta that is flagged as last when the buffer is copied into the
bitstream ring buffer. If there are no more buffers pending, find the
last bitstream meta and mark it as last. If there is no bitstream meta
either, wake up the capture queue as there will be no more decoded
frames.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/coda/coda.h')
-rw-r--r-- | drivers/media/platform/coda/coda.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/coda.h b/drivers/media/platform/coda/coda.h index 97845e58fb8b..5c183c1944fe 100644 --- a/drivers/media/platform/coda/coda.h +++ b/drivers/media/platform/coda/coda.h @@ -146,6 +146,7 @@ struct coda_buffer_meta { u64 timestamp; unsigned int start; unsigned int end; + bool last; }; /* Per-queue, driver-specific private data */ |