Hello,
   thank you all for the patches!

On Thu, Aug 23, 2018 at 03:25:21PM +0200, Niklas Söderlund wrote:
> From: Laurent Pinchart <laurent.pinch...@ideasonboard.com>
>
> The optional operation can be used by entities to report whether two
> pads are internally connected.
>
> Signed-off-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com>
> Signed-off-by: Michal Simek <michal.si...@xilinx.com>
> Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com>
> ---
>  include/media/media-entity.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/include/media/media-entity.h b/include/media/media-entity.h
> index 532c438b9eb862c5..07df1b8d85a3c1ba 100644
> --- a/include/media/media-entity.h
> +++ b/include/media/media-entity.h
> @@ -193,6 +193,9 @@ struct media_pad {
>   * @link_validate:   Return whether a link is valid from the entity point of
>   *                   view. The media_pipeline_start() function
>   *                   validates all links by calling this operation. Optional.
> + * @has_route:               Return whether a route exists inside the entity 
> between
> + *                   two given pads. Optional. If the operation isn't
> + *                   implemented all pads will be considered as connected.
>   *
>   * .. note::
>   *
> @@ -205,6 +208,8 @@ struct media_entity_operations {
>                         const struct media_pad *local,
>                         const struct media_pad *remote, u32 flags);
>       int (*link_validate)(struct media_link *link);
> +     bool (*has_route)(struct media_entity *entity, unsigned int pad0,
> +                       unsigned int pad1);

In one next patch in the series:
[PATCH 09/30] media: entity: Swap pads if route is checked from source to sink
the media_entity_has_route() operations ensures the sink pad is always
the first one. Could we make it explicit in the paramters name and
documentation to ease understanding when driver will have to implement this?

Thanks
   j



>  };
>
>  /**
> --
> 2.18.0
>

Attachment: signature.asc
Description: PGP signature

Reply via email to