Skip to contentSkip to conversation

docs-rst: Document EBUSY for VIDIOC_S_FMT

PATCH In review Sakari Ailus 2 participants 2 messages Jun 26, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs-rst: Document EBUSY for VIDIOC_S_FMT

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

---
 Documentation/media/uapi/v4l/vidioc-g-fmt.rst | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/media/uapi/v4l/vidioc-g-fmt.rst +6 -0
index b853e48..d082f9a 100644
@@ -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.
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Sakari Ailus

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

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

Quoted 19 lines
---
 Documentation/media/uapi/v4l/vidioc-g-fmt.rst | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/media/uapi/v4l/vidioc-g-fmt.rst +6 -0
index b853e48..d082f9a 100644
@@ -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.