All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] media: Replace media graph walk in several drivers
@ 2022-12-20 14:36 Laurent Pinchart
  2022-12-20 14:36 ` [PATCH v2 1/5] media: mc: entity: Add pad iterator for media_pipeline Laurent Pinchart
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Laurent Pinchart @ 2022-12-20 14:36 UTC (permalink / raw)
  To: linux-media
  Cc: Sakari Ailus, Tomi Valkeinen, Michal Simek, Sylwester Nawrocki

Hello,

This patch series replaces the media graph walk API usage in several
drivers with iteration over entities or pads stored in the
media_pipeline object. Iteration over the constructed pipeline is more
efficient, and will support the V4L2 stream API correctly.

Patches 1/5 and 2/5 start by adding two macros to iterate over pads and
entities in a pipeline. Patch 2/5 also marks the media graph walk API as
deprecated as a result. Patches 3/5 to 5/5 then use the new iterators in
three drivers (omap3isp, omap4iss and xilinx).

Compared to v1, this version fixes issues raised during review.

With this series applied, only two drivers still use the media graph
walk API: exynos4-is and vsp1. Those are more difficult to address. I
plan to work on the vsp1 driver, but not on exynos4-is as I miss
knowledge of the code base and have no hardware to test changes on.
As with v1, volunteers would be appreciated :-)

Laurent Pinchart (5):
  media: mc: entity: Add pad iterator for media_pipeline
  media: mc: entity: Add entity iterator for media_pipeline
  media: ti: omap3isp: Use media_pipeline_for_each_entity()
  media: ti: omap4iss: Use media_pipeline_for_each_entity()
  media: xilinx: dma: Use media_pipeline_for_each_pad()

 drivers/media/mc/mc-entity.c                  | 55 +++++++++++
 drivers/media/platform/ti/omap3isp/ispvideo.c | 20 ++--
 drivers/media/platform/xilinx/xilinx-dma.c    | 28 ++----
 drivers/staging/media/omap4iss/iss_video.c    | 62 +++++-------
 include/media/media-entity.h                  | 98 +++++++++++++++++++
 5 files changed, 188 insertions(+), 75 deletions(-)

-- 
Regards,

Laurent Pinchart


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

end of thread, other threads:[~2022-12-21  5:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20 14:36 [PATCH v2 0/5] media: Replace media graph walk in several drivers Laurent Pinchart
2022-12-20 14:36 ` [PATCH v2 1/5] media: mc: entity: Add pad iterator for media_pipeline Laurent Pinchart
2022-12-20 14:36 ` [PATCH v2 2/5] media: mc: entity: Add entity " Laurent Pinchart
2022-12-20 14:36 ` [PATCH v2 3/5] media: ti: omap3isp: Use media_pipeline_for_each_entity() Laurent Pinchart
2022-12-21  5:43   ` kernel test robot
2022-12-20 14:36 ` [PATCH v2 4/5] media: ti: omap4iss: " Laurent Pinchart
2022-12-21  3:30   ` kernel test robot
2022-12-20 14:36 ` [PATCH v2 5/5] media: xilinx: dma: Use media_pipeline_for_each_pad() 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.