diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-01-13 17:00:41 +0200 |
---|---|---|
committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-03-04 00:27:06 +0200 |
commit | f17bc788f7b97c36b8f3fbef14555a2a16ee3f69 (patch) | |
tree | 0900729130e4d0100d67bcc9123b32b98b15dcb7 /drivers/media/platform/exynos4-is/common.c | |
parent | 472377febf848a08f67ed73bb0dc13a907575f82 (diff) | |
download | linux-f17bc788f7b97c36b8f3fbef14555a2a16ee3f69.tar.bz2 |
media: media-entity: Add media_pad_is_streaming() helper function
Add a function to test if a pad is part of a pipeline currently
streaming, and use it through drivers to replace direct access to the
stream_count field. This will help reworking pipeline start/stop without
disturbing drivers.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'drivers/media/platform/exynos4-is/common.c')
-rw-r--r-- | drivers/media/platform/exynos4-is/common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos4-is/common.c b/drivers/media/platform/exynos4-is/common.c index 944b224eb621..023f624d29d5 100644 --- a/drivers/media/platform/exynos4-is/common.c +++ b/drivers/media/platform/exynos4-is/common.c @@ -10,7 +10,10 @@ #include <media/drv-intf/exynos-fimc.h> #include "common.h" -/* Called with the media graph mutex held or entity->stream_count > 0. */ +/* + * Called with the media graph mutex held or media_entity_is_streaming(entity) + * true. + */ struct v4l2_subdev *fimc_find_remote_sensor(struct media_entity *entity) { struct media_pad *pad = &entity->pads[0]; |