linux/Documentation/driver-api/media
Laurent Pinchart 5680fe45d6 media: mc-entity: Add a new helper function to get a remote pad
The media_entity_remote_pad_first() helper function returns the first
remote pad it finds connected to a given pad. Beside being possibly
non-deterministic (as it stops at the first enabled link), the fact that
it returns the first match makes it unsuitable for drivers that need to
guarantee that a single link is enabled, for instance when an entity can
process data from one of multiple sources at a time.

For those use cases, add a new helper function,
media_entity_remote_pad_unique(), that operates on an entity and returns
a remote pad, with a guarantee that only one link is enabled. To ease
its use in drivers, also add an inline wrapper that locates source pads
specifically. A wrapper that locates sink pads can easily be added when
needed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-07-17 11:23:10 +01:00
..
drivers media: platform: rename davinci/ to ti/davinci/ 2022-03-18 05:58:34 +01:00
camera-sensor.rst media: Documentation: media: Improve camera sensor documentation 2021-08-04 14:43:50 +02:00
cec-core.rst media: cec: add optional adap_configured callback 2022-04-24 07:41:35 +01:00
dtv-ca.rst
dtv-common.rst
dtv-core.rst
dtv-demux.rst
dtv-frontend.rst media: Documentation/driver-api: media/dtv-frontend: drop doubled word 2020-11-27 13:03:46 +01:00
dtv-net.rst
index.rst media: Documentation: media: Improve camera sensor documentation 2021-08-04 14:43:50 +02:00
maintainer-entry-profile.rst media: remove myself from dvb media maintainers 2021-10-08 13:56:25 +02:00
mc-core.rst media: mc-entity: Add a new helper function to get a remote pad 2022-07-17 11:23:10 +01:00
rc-core.rst
tx-rx.rst media: Documentation: v4l: Rework LP-11 documentation, add callbacks 2021-08-04 14:43:50 +02:00
v4l2-async.rst
v4l2-common.rst
v4l2-controls.rst media: Documentation/driver-api: media/v4l2-controls: drop doubled words 2020-11-27 13:01:54 +01:00
v4l2-core.rst media: Remove the legacy v4l2-clk API 2021-02-06 09:39:44 +01:00
v4l2-dev.rst media: Documentation/driver-api: media/v4l2-dev: drop doubled word 2020-11-27 13:02:46 +01:00
v4l2-device.rst docs: get rid of :c:type explicit declarations for structs 2020-10-15 07:49:40 +02:00
v4l2-dv-timings.rst
v4l2-event.rst media: platform: rename omap3isp/ to ti/omap3isp/ 2022-03-18 05:58:34 +01:00
v4l2-fh.rst docs: get rid of :c:type explicit declarations for structs 2020-10-15 07:49:40 +02:00
v4l2-flash-led-class.rst
v4l2-fwnode.rst
v4l2-intro.rst
v4l2-mc.rst
v4l2-mediabus.rst
v4l2-mem2mem.rst
v4l2-rect.rst
v4l2-subdev.rst media: v4l2-async: Add notifier operation to destroy asd instances 2022-07-17 11:20:08 +01:00
v4l2-tuner.rst
v4l2-tveeprom.rst
v4l2-videobuf2.rst
v4l2-videobuf.rst media: Documentation/media: drop/fix vivi references 2020-04-16 10:37:49 +02:00