From bf5fb95c261de259e912e49973c66347a0a5b3d3 Mon Sep 17 00:00:00 2001 From: Helen Fornazier Date: Mon, 19 Jun 2017 14:00:13 -0300 Subject: [media] vimc: common: Add vimc_pipeline_s_stream helper Move the vimc_cap_pipeline_s_stream from the vimc-cap.c to vimc-common.c as this core will be reused by other subdevices to activate the stream in their directly connected nodes Signed-off-by: Helen Koike Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/vimc/vimc-common.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'drivers/media/platform/vimc/vimc-common.h') diff --git a/drivers/media/platform/vimc/vimc-common.h b/drivers/media/platform/vimc/vimc-common.h index 9ec361c8d7e4..73e7e9479956 100644 --- a/drivers/media/platform/vimc/vimc-common.h +++ b/drivers/media/platform/vimc/vimc-common.h @@ -96,6 +96,17 @@ static inline void vimc_pads_cleanup(struct media_pad *pads) kfree(pads); } +/** + * vimc_pipeline_s_stream - start stream through the pipeline + * + * @ent: the pointer to struct media_entity for the node + * @enable: 1 to start the stream and 0 to stop + * + * Helper function to call the s_stream of the subdevices connected + * in all the sink pads of the entity + */ +int vimc_pipeline_s_stream(struct media_entity *ent, int enable); + /** * vimc_pix_map_by_code - get vimc_pix_map struct by media bus code * -- cgit v1.2.3