[media] omap3isp: Cancel streaming when a fatal error occurs
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 9 Dec 2013 14:36:51 +0000 (11:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 10:08:48 +0000 (08:08 -0200)
commit661112cb7e343c36d8d7899c1c9e6d37271aafd4
tree0a5909241524c32dd20df1c2d4f87431d7c3fd71
parent951ed98eb8e4e36d35ad5088cbca94a6215c2965
[media] omap3isp: Cancel streaming when a fatal error occurs

When a fatal error that prevents any further video streaming occurs in a
pipeline, all queued buffers must be marked as erroneous and new buffers
must be prevented from being queued. Implement this behaviour with a new
omap3isp_pipeline_cancel_stream() function that can be used by
submodules to cancel streaming.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/omap3isp/isp.c
drivers/media/platform/omap3isp/isp.h
drivers/media/platform/omap3isp/ispvideo.c
drivers/media/platform/omap3isp/ispvideo.h