Commit 25c8d9a7 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: Documentation: v4l: Document that link_validate op is valid for sink only

The link_validate pad op will only be called on sink pads. Document this.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarJacopo Mondi <jacopo@jmondi.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 352cf679
...@@ -122,11 +122,12 @@ Don't forget to cleanup the media entity before the sub-device is destroyed: ...@@ -122,11 +122,12 @@ Don't forget to cleanup the media entity before the sub-device is destroyed:
media_entity_cleanup(&sd->entity); media_entity_cleanup(&sd->entity);
In that case, the subdev driver may set the link_validate field to provide If a sub-device driver implements sink pads, the subdev driver may set the
its own link validation function. The link validation function is called for link_validate field in :c:type:`v4l2_subdev_pad_ops`to provide its own link
every link in the pipeline where both of the ends of the links are V4L2 validation function. For every link in the pipeline, the link_validate pad
sub-devices. The driver is still responsible for validating the correctness operation of the sink end of the link is called. In both cases the driver is
of the format configuration between sub-devices and video nodes. still responsible for validating the correctness of the format configuration
between sub-devices and video nodes.
If link_validate op is not set, the default function If link_validate op is not set, the default function
:c:func:`v4l2_subdev_link_validate_default` is used instead. This function :c:func:`v4l2_subdev_link_validate_default` is used instead. This function
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment