]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] coda: keep queued buffers on a temporary list during start_streaming
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 3 Mar 2017 12:12:48 +0000 (09:12 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 13:06:25 +0000 (10:06 -0300)
commit331e7860f3da430500559c665bd0ea63260fc9dc
tree4a7752b74c201826b69a94fd3e4611c1191a342c
parent888708b1decb7d12e09095cd67e5b6442401cd51
[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>
drivers/media/platform/coda/coda-bit.c
drivers/media/platform/coda/coda-common.c
drivers/media/platform/coda/coda.h