* [PATCH 0/2] Subdev link validation and format documentation improvements
@ 2020-12-02 18:19 Sakari Ailus
2020-12-02 18:19 ` [PATCH 1/2] Documentation: v4l: Remove reference to video ops Sakari Ailus
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Sakari Ailus @ 2020-12-02 18:19 UTC (permalink / raw)
To: linux-media; +Cc: martinax.krasteva
Hello,
I wrote these small patches to improve the documentation regarding
requirements for subdev drivers to implement format related ops as well as
the link_validate op.
Sakari Ailus (2):
Documentation: v4l: Remove reference to video ops
Documentation: v4l: Document that link_validate op is valid for sink
only
Documentation/driver-api/media/v4l2-subdev.rst | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
--
2.27.0
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 1/2] Documentation: v4l: Remove reference to video ops 2020-12-02 18:19 [PATCH 0/2] Subdev link validation and format documentation improvements Sakari Ailus @ 2020-12-02 18:19 ` Sakari Ailus 2020-12-02 18:19 ` [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only Sakari Ailus 2020-12-04 13:45 ` [PATCH 0/2] Subdev link validation and format documentation improvements Jacopo Mondi 2 siblings, 0 replies; 9+ messages in thread From: Sakari Ailus @ 2020-12-02 18:19 UTC (permalink / raw) To: linux-media; +Cc: martinax.krasteva We no longer have format related callbacks in video ops. Remove the reference to them. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> --- Documentation/driver-api/media/v4l2-subdev.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Documentation/driver-api/media/v4l2-subdev.rst b/Documentation/driver-api/media/v4l2-subdev.rst index bb5b1a7cdfd9..d4cba0d6c4ca 100644 --- a/Documentation/driver-api/media/v4l2-subdev.rst +++ b/Documentation/driver-api/media/v4l2-subdev.rst @@ -122,10 +122,6 @@ Don't forget to cleanup the media entity before the sub-device is destroyed: media_entity_cleanup(&sd->entity); -If the subdev driver intends to process video and integrate with the media -framework, it must implement format related functionality using -:c:type:`v4l2_subdev_pad_ops` instead of :c:type:`v4l2_subdev_video_ops`. - In that case, the subdev driver may set the link_validate field to provide its own link validation function. The link validation function is called for every link in the pipeline where both of the ends of the links are V4L2 -- 2.27.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only 2020-12-02 18:19 [PATCH 0/2] Subdev link validation and format documentation improvements Sakari Ailus 2020-12-02 18:19 ` [PATCH 1/2] Documentation: v4l: Remove reference to video ops Sakari Ailus @ 2020-12-02 18:19 ` Sakari Ailus 2020-12-03 5:00 ` Sebastian Fricke 2020-12-04 13:45 ` [PATCH 0/2] Subdev link validation and format documentation improvements Jacopo Mondi 2 siblings, 1 reply; 9+ messages in thread From: Sakari Ailus @ 2020-12-02 18:19 UTC (permalink / raw) To: linux-media; +Cc: martinax.krasteva The link_validate pad op will only be called on sink pads. Document this. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> --- Documentation/driver-api/media/v4l2-subdev.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Documentation/driver-api/media/v4l2-subdev.rst b/Documentation/driver-api/media/v4l2-subdev.rst index d4cba0d6c4ca..6d5c799c49fe 100644 --- a/Documentation/driver-api/media/v4l2-subdev.rst +++ b/Documentation/driver-api/media/v4l2-subdev.rst @@ -122,11 +122,12 @@ Don't forget to cleanup the media entity before the sub-device is destroyed: media_entity_cleanup(&sd->entity); -In that case, the subdev driver may set the link_validate field to provide -its own link validation function. The link validation function is called for -every link in the pipeline where both of the ends of the links are V4L2 -sub-devices. The driver is still responsible for validating the correctness -of the format configuration between sub-devices and video nodes. +If a sub-device driver implements sink pads, the subdev driver may set the +link_validate field in :c:type:`v4l2_subdev_pad_ops`to provide its own link +validation function. For every link in the pipeline, the link_validate pad +operation of the sink end of the link is called. In both cases the driver is +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 :c:func:`v4l2_subdev_link_validate_default` is used instead. This function -- 2.27.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only 2020-12-02 18:19 ` [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only Sakari Ailus @ 2020-12-03 5:00 ` Sebastian Fricke 2020-12-03 8:49 ` Martina Krasteva 2020-12-04 12:20 ` Sakari Ailus 0 siblings, 2 replies; 9+ messages in thread From: Sebastian Fricke @ 2020-12-03 5:00 UTC (permalink / raw) To: Sakari Ailus; +Cc: linux-media, martinax.krasteva Thank you. On 02.12.2020 20:19, Sakari Ailus wrote: >The link_validate pad op will only be called on sink pads. Document this. > >Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> >--- > Documentation/driver-api/media/v4l2-subdev.rst | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git a/Documentation/driver-api/media/v4l2-subdev.rst b/Documentation/driver-api/media/v4l2-subdev.rst >index d4cba0d6c4ca..6d5c799c49fe 100644 >--- a/Documentation/driver-api/media/v4l2-subdev.rst >+++ b/Documentation/driver-api/media/v4l2-subdev.rst >@@ -122,11 +122,12 @@ Don't forget to cleanup the media entity before the sub-device is destroyed: > > media_entity_cleanup(&sd->entity); > >-In that case, the subdev driver may set the link_validate field to provide >-its own link validation function. The link validation function is called for >-every link in the pipeline where both of the ends of the links are V4L2 >-sub-devices. The driver is still responsible for validating the correctness >-of the format configuration between sub-devices and video nodes. >+If a sub-device driver implements sink pads, the subdev driver may set the >+link_validate field in :c:type:`v4l2_subdev_pad_ops`to provide its own link >+validation function. For every link in the pipeline, the link_validate pad >+operation of the sink end of the link is called. In both cases the driver is s/In both cases the driver/In both cases, the driver/ >+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 > :c:func:`v4l2_subdev_link_validate_default` is used instead. This function >-- >2.27.0 > ^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only 2020-12-03 5:00 ` Sebastian Fricke @ 2020-12-03 8:49 ` Martina Krasteva 2020-12-04 12:20 ` Sakari Ailus 1 sibling, 0 replies; 9+ messages in thread From: Martina Krasteva @ 2020-12-03 8:49 UTC (permalink / raw) To: 'Sebastian Fricke', 'Sakari Ailus'; +Cc: linux-media Thank you, Sakari. This will remove any confusion regarding this matter. > > Thank you. > > On 02.12.2020 20:19, Sakari Ailus wrote: > >The link_validate pad op will only be called on sink pads. Document this. > > > >Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> > >--- > > Documentation/driver-api/media/v4l2-subdev.rst | 11 ++++++----- > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > >diff --git a/Documentation/driver-api/media/v4l2-subdev.rst > >b/Documentation/driver-api/media/v4l2-subdev.rst > >index d4cba0d6c4ca..6d5c799c49fe 100644 > >--- a/Documentation/driver-api/media/v4l2-subdev.rst > >+++ b/Documentation/driver-api/media/v4l2-subdev.rst > >@@ -122,11 +122,12 @@ Don't forget to cleanup the media entity before the > sub-device is destroyed: > > > > media_entity_cleanup(&sd->entity); > > > >-In that case, the subdev driver may set the link_validate field to > >provide -its own link validation function. The link validation function > >is called for -every link in the pipeline where both of the ends of the > >links are V4L2 -sub-devices. The driver is still responsible for > >validating the correctness -of the format configuration between sub-devices > and video nodes. > >+If a sub-device driver implements sink pads, the subdev driver may set > >+the link_validate field in :c:type:`v4l2_subdev_pad_ops`to provide its > >+own link validation function. For every link in the pipeline, the > >+link_validate pad operation of the sink end of the link is called. In > >+both cases the driver is > > s/In both cases the driver/In both cases, the driver/ > > >+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 > >:c:func:`v4l2_subdev_link_validate_default` is used instead. This > >function > >-- > >2.27.0 > > Best Regards, Martina ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only 2020-12-03 5:00 ` Sebastian Fricke 2020-12-03 8:49 ` Martina Krasteva @ 2020-12-04 12:20 ` Sakari Ailus 2020-12-04 15:06 ` Sebastian Fricke 1 sibling, 1 reply; 9+ messages in thread From: Sakari Ailus @ 2020-12-04 12:20 UTC (permalink / raw) To: Sebastian Fricke; +Cc: linux-media, martinax.krasteva Hi Sebastian, On Thu, Dec 03, 2020 at 06:00:40AM +0100, Sebastian Fricke wrote: > Thank you. > > On 02.12.2020 20:19, Sakari Ailus wrote: > > The link_validate pad op will only be called on sink pads. Document this. > > > > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> > > --- > > Documentation/driver-api/media/v4l2-subdev.rst | 11 ++++++----- > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > > diff --git a/Documentation/driver-api/media/v4l2-subdev.rst b/Documentation/driver-api/media/v4l2-subdev.rst > > index d4cba0d6c4ca..6d5c799c49fe 100644 > > --- a/Documentation/driver-api/media/v4l2-subdev.rst > > +++ b/Documentation/driver-api/media/v4l2-subdev.rst > > @@ -122,11 +122,12 @@ Don't forget to cleanup the media entity before the sub-device is destroyed: > > > > media_entity_cleanup(&sd->entity); > > > > -In that case, the subdev driver may set the link_validate field to provide > > -its own link validation function. The link validation function is called for > > -every link in the pipeline where both of the ends of the links are V4L2 > > -sub-devices. The driver is still responsible for validating the correctness > > -of the format configuration between sub-devices and video nodes. > > +If a sub-device driver implements sink pads, the subdev driver may set the > > +link_validate field in :c:type:`v4l2_subdev_pad_ops`to provide its own link > > +validation function. For every link in the pipeline, the link_validate pad > > +operation of the sink end of the link is called. In both cases the driver is > > s/In both cases the driver/In both cases, the driver/ Is there any particular reason for this change? I think it's fine as it was. :-) > > > +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 > > :c:func:`v4l2_subdev_link_validate_default` is used instead. This function -- Regards, Sakari Ailus ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only 2020-12-04 12:20 ` Sakari Ailus @ 2020-12-04 15:06 ` Sebastian Fricke 2020-12-07 20:39 ` Sakari Ailus 0 siblings, 1 reply; 9+ messages in thread From: Sebastian Fricke @ 2020-12-04 15:06 UTC (permalink / raw) To: Sakari Ailus; +Cc: linux-media, martinax.krasteva On 04.12.2020 14:20, Sakari Ailus wrote: >Hi Sebastian, > >On Thu, Dec 03, 2020 at 06:00:40AM +0100, Sebastian Fricke wrote: >> Thank you. >> >> On 02.12.2020 20:19, Sakari Ailus wrote: >> > The link_validate pad op will only be called on sink pads. Document this. >> > >> > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> >> > --- >> > Documentation/driver-api/media/v4l2-subdev.rst | 11 ++++++----- >> > 1 file changed, 6 insertions(+), 5 deletions(-) >> > >> > diff --git a/Documentation/driver-api/media/v4l2-subdev.rst b/Documentation/driver-api/media/v4l2-subdev.rst >> > index d4cba0d6c4ca..6d5c799c49fe 100644 >> > --- a/Documentation/driver-api/media/v4l2-subdev.rst >> > +++ b/Documentation/driver-api/media/v4l2-subdev.rst >> > @@ -122,11 +122,12 @@ Don't forget to cleanup the media entity before the sub-device is destroyed: >> > >> > media_entity_cleanup(&sd->entity); >> > >> > -In that case, the subdev driver may set the link_validate field to provide >> > -its own link validation function. The link validation function is called for >> > -every link in the pipeline where both of the ends of the links are V4L2 >> > -sub-devices. The driver is still responsible for validating the correctness >> > -of the format configuration between sub-devices and video nodes. >> > +If a sub-device driver implements sink pads, the subdev driver may set the >> > +link_validate field in :c:type:`v4l2_subdev_pad_ops`to provide its own link >> > +validation function. For every link in the pipeline, the link_validate pad >> > +operation of the sink end of the link is called. In both cases the driver is >> >> s/In both cases the driver/In both cases, the driver/ > >Is there any particular reason for this change? I think it's fine as it >was. :-) I was just proof reading the change and thought that a comma would fit here quite well. It really isn't anything important, so if you don't agree, that is totally fine for me. > >> >> > +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 >> > :c:func:`v4l2_subdev_link_validate_default` is used instead. This function > >-- >Regards, > >Sakari Ailus ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only 2020-12-04 15:06 ` Sebastian Fricke @ 2020-12-07 20:39 ` Sakari Ailus 0 siblings, 0 replies; 9+ messages in thread From: Sakari Ailus @ 2020-12-07 20:39 UTC (permalink / raw) To: Sebastian Fricke; +Cc: linux-media, martinax.krasteva On Fri, Dec 04, 2020 at 04:06:48PM +0100, Sebastian Fricke wrote: > On 04.12.2020 14:20, Sakari Ailus wrote: > > Hi Sebastian, > > > > On Thu, Dec 03, 2020 at 06:00:40AM +0100, Sebastian Fricke wrote: > > > Thank you. > > > > > > On 02.12.2020 20:19, Sakari Ailus wrote: > > > > The link_validate pad op will only be called on sink pads. Document this. > > > > > > > > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> > > > > --- > > > > Documentation/driver-api/media/v4l2-subdev.rst | 11 ++++++----- > > > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > > > > > > diff --git a/Documentation/driver-api/media/v4l2-subdev.rst b/Documentation/driver-api/media/v4l2-subdev.rst > > > > index d4cba0d6c4ca..6d5c799c49fe 100644 > > > > --- a/Documentation/driver-api/media/v4l2-subdev.rst > > > > +++ b/Documentation/driver-api/media/v4l2-subdev.rst > > > > @@ -122,11 +122,12 @@ Don't forget to cleanup the media entity before the sub-device is destroyed: > > > > > > > > media_entity_cleanup(&sd->entity); > > > > > > > > -In that case, the subdev driver may set the link_validate field to provide > > > > -its own link validation function. The link validation function is called for > > > > -every link in the pipeline where both of the ends of the links are V4L2 > > > > -sub-devices. The driver is still responsible for validating the correctness > > > > -of the format configuration between sub-devices and video nodes. > > > > +If a sub-device driver implements sink pads, the subdev driver may set the > > > > +link_validate field in :c:type:`v4l2_subdev_pad_ops`to provide its own link > > > > +validation function. For every link in the pipeline, the link_validate pad > > > > +operation of the sink end of the link is called. In both cases the driver is > > > > > > s/In both cases the driver/In both cases, the driver/ > > > > Is there any particular reason for this change? I think it's fine as it > > was. :-) > > I was just proof reading the change and thought that a comma would fit > here quite well. It really isn't anything important, so if you > don't agree, that is totally fine for me. Ack. Thanks, Sebastian. -- Sakari Ailus ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] Subdev link validation and format documentation improvements 2020-12-02 18:19 [PATCH 0/2] Subdev link validation and format documentation improvements Sakari Ailus 2020-12-02 18:19 ` [PATCH 1/2] Documentation: v4l: Remove reference to video ops Sakari Ailus 2020-12-02 18:19 ` [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only Sakari Ailus @ 2020-12-04 13:45 ` Jacopo Mondi 2 siblings, 0 replies; 9+ messages in thread From: Jacopo Mondi @ 2020-12-04 13:45 UTC (permalink / raw) To: Sakari Ailus; +Cc: linux-media, martinax.krasteva Hi Sakari, much apreciated On Wed, Dec 02, 2020 at 08:19:53PM +0200, Sakari Ailus wrote: > Hello, > > I wrote these small patches to improve the documentation regarding > requirements for subdev drivers to implement format related ops as well as > the link_validate op. > > Sakari Ailus (2): > Documentation: v4l: Remove reference to video ops > Documentation: v4l: Document that link_validate op is valid for sink > only For the series Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Thanks j > > Documentation/driver-api/media/v4l2-subdev.rst | 15 ++++++--------- > 1 file changed, 6 insertions(+), 9 deletions(-) > > -- > 2.27.0 > ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-12-07 20:41 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-12-02 18:19 [PATCH 0/2] Subdev link validation and format documentation improvements Sakari Ailus 2020-12-02 18:19 ` [PATCH 1/2] Documentation: v4l: Remove reference to video ops Sakari Ailus 2020-12-02 18:19 ` [PATCH 2/2] Documentation: v4l: Document that link_validate op is valid for sink only Sakari Ailus 2020-12-03 5:00 ` Sebastian Fricke 2020-12-03 8:49 ` Martina Krasteva 2020-12-04 12:20 ` Sakari Ailus 2020-12-04 15:06 ` Sebastian Fricke 2020-12-07 20:39 ` Sakari Ailus 2020-12-04 13:45 ` [PATCH 0/2] Subdev link validation and format documentation improvements Jacopo Mondi
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.