Skip to contentSkip to conversation

Trivial in-kernel API documentation fixes

PATCH New Sakari Ailus 1 participant 3 messages Apr 4, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

cover Trivial in-kernel API documentation fixes

Hi,

Two trivial fixes. The first one perhaps is worth a thought. This was anyway my original intention. I'm not sure we'll ever want to have user defined (i.e. undocumented) media bus formats anyway. Hopefully not at least. :-)

Signature · 2 lines
Kind regards,
Sakari
#1 lore raw

PATCH 1/2 media: v4l: V4L2_MBUS_FRAME_DESC_FL_BLOB is about 1D DMA

V4L2_MBUS_FRAME_DESC_FL_BLOB intends to say the receiver must use 1D DMA to receive the image, as the format does not have line offsets. This typically includes all compressed formats.

Cc Sylwester Nawrocki <[email protected]>
---
 include/media/v4l2-subdev.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
include/media/v4l2-subdev.h +6 -3
index 28f4d8c..00f5d2b 100644
@@ -234,15 +234,18 @@ struct v4l2_subdev_audio_ops {
 
 /* Indicates the @length field specifies maximum data length. */
 #define V4L2_MBUS_FRAME_DESC_FL_LEN_MAX		(1U << 0)
-/* Indicates user defined data format, i.e. non standard frame format. */
+/*
+ * Indicates that the format does not have line offsets, i.e. the
+ * receiver should use 1D DMA.
+ */
 #define V4L2_MBUS_FRAME_DESC_FL_BLOB		(1U << 1)
 
 /**
  * struct v4l2_mbus_frame_desc_entry - media bus frame description structure
  * @flags: V4L2_MBUS_FRAME_DESC_FL_* flags
  * @pixelcode: media bus pixel code, valid if FRAME_DESC_FL_BLOB is not set
- * @length: number of octets per frame, valid for compressed or unspecified
- *          formats
+ * @length: number of octets per frame, valid if V4L2_MBUS_FRAME_DESC_FL_BLOB
+ *	    is set
  */
 struct v4l2_mbus_frame_desc_entry {
 	u16 flags;
Signature · 1 line
1.8.3.2
#2 lore raw

PATCH 2/2 media: v4l: Remove documentation for nonexistend input field in v4l2_buffer

In reply to Sakari Ailus

The input field in struct v4l2_buffer no longer exists but has been replaced by a reserved field. Remove the field documentation.

---
 include/uapi/linux/videodev2.h | 1 -
 1 file changed, 1 deletion(-)
include/uapi/linux/videodev2.h +0 -1
index ea468ee..db4aebd 100644
@@ -649,7 +649,6 @@ struct v4l2_plane {
  * @length:	size in bytes of the buffer (NOT its payload) for single-plane
  *		buffers (when type != *_MPLANE); number of elements in the
  *		planes array for multi-plane buffers
- * @input:	input number from which the video data has has been captured
  *
  * Contains data exchanged by application and driver using one of the Streaming
  * I/O methods.
Signature · 1 line
1.8.3.2