All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] media: mc: Simplify media pipeline start/stop
@ 2022-01-13 15:00 Laurent Pinchart
  2022-01-13 15:00 ` [PATCH 1/2] media: media-entity: Add media_pad_is_streaming() helper function Laurent Pinchart
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Laurent Pinchart @ 2022-01-13 15:00 UTC (permalink / raw)
  To: linux-media
  Cc: linux-renesas-soc, Sakari Ailus, Niklas Söderlund,
	Tomi Valkeinen, Jacopo Mondi

Hello,

This small series simplifies the implementation of the
media_pipeline_start() function (and to a lesser extend, the
media_pipeline_stop() function as well) by avoiding unnecessary graph
walks.

Patch 1/2 adds a small inline helper function to avoid direct access to
the media_entity.stream_count field in drivers, making it easier in
patch 2/2 to rework the implementation (dropping the stream_count field)
without disturbing drivers. Please see patch 2/2 for a detailed
explanation of the simplification.

Laurent Pinchart (2):
  media: media-entity: Add media_pad_is_streaming() helper function
  media: media-entity: Simplify media_pipeline_start()

 drivers/media/mc/mc-entity.c                  | 55 ++++++++-----------
 drivers/media/platform/exynos4-is/common.c    |  5 +-
 drivers/media/platform/exynos4-is/fimc-isp.c  |  2 +-
 drivers/media/platform/exynos4-is/fimc-lite.c |  6 +-
 drivers/media/platform/rcar-vin/rcar-core.c   |  2 +-
 include/media/media-entity.h                  | 21 +++++--
 6 files changed, 48 insertions(+), 43 deletions(-)


base-commit: 68b9bcc8a534cd11fe55f8bc82f948aae7d81b3c
-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-02-15 21:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 15:00 [PATCH 0/2] media: mc: Simplify media pipeline start/stop Laurent Pinchart
2022-01-13 15:00 ` [PATCH 1/2] media: media-entity: Add media_pad_is_streaming() helper function Laurent Pinchart
2022-01-13 15:00 ` [PATCH 2/2] media: media-entity: Simplify media_pipeline_start() Laurent Pinchart
2022-01-15 17:39   ` Sakari Ailus
2022-01-15 20:02     ` Laurent Pinchart
2022-02-11 21:27       ` Laurent Pinchart
2022-02-15 21:28         ` Sakari Ailus
2022-01-13 15:28 ` [PATCH 0/2] media: mc: Simplify media pipeline start/stop Laurent Pinchart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.