All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
To: linux-media@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org,
	"Sakari Ailus" <sakari.ailus@iki.fi>,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>,
	"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>,
	"Jacopo Mondi" <jacopo@jmondi.org>
Subject: [PATCH 0/2] media: mc: Simplify media pipeline start/stop
Date: Thu, 13 Jan 2022 17:00:40 +0200	[thread overview]
Message-ID: <20220113150042.15630-1-laurent.pinchart+renesas@ideasonboard.com> (raw)

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


             reply	other threads:[~2022-01-13 15:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13 15:00 Laurent Pinchart [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220113150042.15630-1-laurent.pinchart+renesas@ideasonboard.com \
    --to=laurent.pinchart+renesas@ideasonboard.com \
    --cc=jacopo@jmondi.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=sakari.ailus@iki.fi \
    --cc=tomi.valkeinen@ideasonboard.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.