e99f0115e5
This commit moves the "buffer in use" logic from the .buf_cleanup handler into .stop_streaming, based on advice that this is its proper logical home. By ensuring the list of pointers in priv->queue_buf[] is managed as soon as possible, we avoid warnings concerning buffers in ACTIVE state when the system cleans up after streaming stops. This fixes a problem with modification of buffers after their content has been cleared for passing to userspace. After the refactoring, the buf_init and buf_cleanup functions were found to contain only initialisation/release steps as are carried out elsewhere if omitted; these functions and references were removed. Signed-off-by: William Towle <william.towle@codethink.co.uk> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
atmel-isi.c | ||
mx2_camera.c | ||
mx3_camera.c | ||
omap1_camera.c | ||
pxa_camera.c | ||
rcar_vin.c | ||
sh_mobile_ceu_camera.c | ||
sh_mobile_csi2.c | ||
soc_camera.c | ||
soc_camera_platform.c | ||
soc_mediabus.c | ||
soc_scale_crop.c | ||
soc_scale_crop.h |