Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 1/1] docs-rst: Document EBUSY for VIDIOC_S_FMT
@ 2017-06-26  9:26 Sakari Ailus
  2017-06-26  9:35 ` Hans Verkuil
  0 siblings, 1 reply; 2+ messages in thread
From: Sakari Ailus @ 2017-06-26  9:26 UTC (permalink / raw)
  To: linux-media; +Cc: hverkuil

VIDIOC_S_FMT may return EBUSY if the device is streaming or there are
buffers allocated. Document this.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 Documentation/media/uapi/v4l/vidioc-g-fmt.rst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/media/uapi/v4l/vidioc-g-fmt.rst b/Documentation/media/uapi/v4l/vidioc-g-fmt.rst
index b853e48..d082f9a 100644
--- a/Documentation/media/uapi/v4l/vidioc-g-fmt.rst
+++ b/Documentation/media/uapi/v4l/vidioc-g-fmt.rst
@@ -147,3 +147,9 @@ appropriately. The generic error codes are described at the
 EINVAL
     The struct :c:type:`v4l2_format` ``type`` field is
     invalid or the requested buffer type not supported.
+
+EBUSY
+    The device is busy and cannot change the format. This could be
+    because or the device is streaming or buffers are allocated or
+    queued to the driver. Relevant for :ref:`VIDIOC_S_FMT
+    <VIDIOC_G_FMT>` only.
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] docs-rst: Document EBUSY for VIDIOC_S_FMT
  2017-06-26  9:26 [PATCH 1/1] docs-rst: Document EBUSY for VIDIOC_S_FMT Sakari Ailus
@ 2017-06-26  9:35 ` Hans Verkuil
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2017-06-26  9:35 UTC (permalink / raw)
  To: Sakari Ailus, linux-media

On 26/06/17 11:26, Sakari Ailus wrote:
> VIDIOC_S_FMT may return EBUSY if the device is streaming or there are
> buffers allocated. Document this.
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>

Can you also add this to S_STD, S_INPUT, S_OUTPUT and S_CROP?

And update the EBUSY description for S_DV_TIMINGS and S_SELECTION
since this new description is much better than what is currently
there.

Thanks,

	Hans

> ---
>  Documentation/media/uapi/v4l/vidioc-g-fmt.rst | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/Documentation/media/uapi/v4l/vidioc-g-fmt.rst b/Documentation/media/uapi/v4l/vidioc-g-fmt.rst
> index b853e48..d082f9a 100644
> --- a/Documentation/media/uapi/v4l/vidioc-g-fmt.rst
> +++ b/Documentation/media/uapi/v4l/vidioc-g-fmt.rst
> @@ -147,3 +147,9 @@ appropriately. The generic error codes are described at the
>  EINVAL
>      The struct :c:type:`v4l2_format` ``type`` field is
>      invalid or the requested buffer type not supported.
> +
> +EBUSY
> +    The device is busy and cannot change the format. This could be
> +    because or the device is streaming or buffers are allocated or
> +    queued to the driver. Relevant for :ref:`VIDIOC_S_FMT
> +    <VIDIOC_G_FMT>` only.
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-26  9:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-26  9:26 [PATCH 1/1] docs-rst: Document EBUSY for VIDIOC_S_FMT Sakari Ailus
2017-06-26  9:35 ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox