From: Sakari Ailus Date: Mon, 26 Jun 2017 09:26:24 +0000 (-0300) Subject: media: docs-rst: Document EBUSY for VIDIOC_S_FMT X-Git-Tag: v4.13-rc4~5^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ee92289c269dfe91e0e3858399c244dc92fa20e;p=thirdparty%2Fkernel%2Flinux.git media: 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. Signed-off-by: Sakari Ailus Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/Documentation/media/uapi/v4l/vidioc-g-fmt.rst b/Documentation/media/uapi/v4l/vidioc-g-fmt.rst index b853e48312e2b..d082f9a215481 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 + ` only.