v4l2-mc.h (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) v4l2-mc.h (dbedd2f4901e8e86f78d30b7f586a1987d83a69e)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * v4l2-mc.h - Media Controller V4L2 types and prototypes
4 *
5 * Copyright (C) 2016 Mauro Carvalho Chehab <mchehab@kernel.org>
6 * Copyright (C) 2006-2010 Nokia Corporation
7 * Copyright (c) 2016 Intel Corporation.
8 */

--- 77 unchanged lines hidden (view full) ---

86int v4l_vb2q_enable_media_source(struct vb2_queue *q);
87
88/**
89 * v4l2_create_fwnode_links_to_pad - Create fwnode-based links from a
90 * source subdev to a sink subdev pad.
91 *
92 * @src_sd: pointer to a source subdev
93 * @sink: pointer to a subdev sink pad
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * v4l2-mc.h - Media Controller V4L2 types and prototypes
4 *
5 * Copyright (C) 2016 Mauro Carvalho Chehab <mchehab@kernel.org>
6 * Copyright (C) 2006-2010 Nokia Corporation
7 * Copyright (c) 2016 Intel Corporation.
8 */

--- 77 unchanged lines hidden (view full) ---

86int v4l_vb2q_enable_media_source(struct vb2_queue *q);
87
88/**
89 * v4l2_create_fwnode_links_to_pad - Create fwnode-based links from a
90 * source subdev to a sink subdev pad.
91 *
92 * @src_sd: pointer to a source subdev
93 * @sink: pointer to a subdev sink pad
94 * @flags: the link flags
94 *
95 * This function searches for fwnode endpoint connections from a source
96 * subdevice to a single sink pad, and if suitable connections are found,
97 * translates them into media links to that pad. The function can be
98 * called by the sink subdevice, in its v4l2-async notifier subdev bound
99 * callback, to create links from a bound source subdevice.
100 *
95 *
96 * This function searches for fwnode endpoint connections from a source
97 * subdevice to a single sink pad, and if suitable connections are found,
98 * translates them into media links to that pad. The function can be
99 * called by the sink subdevice, in its v4l2-async notifier subdev bound
100 * callback, to create links from a bound source subdevice.
101 *
102 * The @flags argument specifies the link flags. The caller shall ensure that
103 * the flags are valid regardless of the number of links that may be created.
104 * For instance, setting the MEDIA_LNK_FL_ENABLED flag will cause all created
105 * links to be enabled, which isn't valid if more than one link is created.
106 *
101 * .. note::
102 *
103 * Any sink subdevice that calls this function must implement the
104 * .get_fwnode_pad media operation in order to verify endpoints passed
105 * to the sink are owned by the sink.
106 *
107 * Return 0 on success or a negative error code on failure.
108 */
109int v4l2_create_fwnode_links_to_pad(struct v4l2_subdev *src_sd,
107 * .. note::
108 *
109 * Any sink subdevice that calls this function must implement the
110 * .get_fwnode_pad media operation in order to verify endpoints passed
111 * to the sink are owned by the sink.
112 *
113 * Return 0 on success or a negative error code on failure.
114 */
115int v4l2_create_fwnode_links_to_pad(struct v4l2_subdev *src_sd,
110 struct media_pad *sink);
116 struct media_pad *sink, u32 flags);
111
112/**
113 * v4l2_create_fwnode_links - Create fwnode-based links from a source
114 * subdev to a sink subdev.
115 *
116 * @src_sd: pointer to a source subdevice
117 * @sink_sd: pointer to a sink subdevice
118 *

--- 99 unchanged lines hidden ---
117
118/**
119 * v4l2_create_fwnode_links - Create fwnode-based links from a source
120 * subdev to a sink subdev.
121 *
122 * @src_sd: pointer to a source subdevice
123 * @sink_sd: pointer to a sink subdevice
124 *

--- 99 unchanged lines hidden ---