]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
[media] v4l: add stream format for SDR receiver
authorAntti Palosaari <crope@iki.fi>
Thu, 12 Dec 2013 16:34:30 +0000 (13:34 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 5 Mar 2014 17:15:12 +0000 (14:15 -0300)
Add new V4L2 stream format definition, V4L2_BUF_TYPE_SDR_CAPTURE,
for SDR receiver.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-ioctl.c
include/trace/events/v4l2.h
include/uapi/linux/videodev2.h

index 15ab34968fb041286a9d76187f4af9588cf1830d..9a2acaf754269c16d34f177f82ae6a1c4e7f0c3c 100644 (file)
@@ -152,6 +152,7 @@ const char *v4l2_type_names[] = {
        [V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY] = "vid-out-overlay",
        [V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE] = "vid-cap-mplane",
        [V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE] = "vid-out-mplane",
+       [V4L2_BUF_TYPE_SDR_CAPTURE]        = "sdr-cap",
 };
 EXPORT_SYMBOL(v4l2_type_names);
 
index ef94ecad1c948bcae24694e376446b3af10b1ba5..b9bb1f2046938d136996de8fd6adfb5420e28486 100644 (file)
@@ -18,6 +18,7 @@
                { V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY, "VIDEO_OUTPUT_OVERLAY" },\
                { V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, "VIDEO_CAPTURE_MPLANE" },\
                { V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,  "VIDEO_OUTPUT_MPLANE" }, \
+               { V4L2_BUF_TYPE_SDR_CAPTURE,          "SDR_CAPTURE" },         \
                { V4L2_BUF_TYPE_PRIVATE,              "PRIVATE" })
 
 #define show_field(field)                                              \
index 1cf20765482ebf791dfa6666ea2467b162092ac7..27bed7c99b46ed3f66e24f28eb4bdbc8f52ef5d5 100644 (file)
@@ -139,6 +139,7 @@ enum v4l2_buf_type {
 #endif
        V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE = 9,
        V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE  = 10,
+       V4L2_BUF_TYPE_SDR_CAPTURE          = 11,
        /* Deprecated, do not use */
        V4L2_BUF_TYPE_PRIVATE              = 0x80,
 };
@@ -1694,6 +1695,15 @@ struct v4l2_pix_format_mplane {
        __u8                            reserved[11];
 } __attribute__ ((packed));
 
+/**
+ * struct v4l2_format_sdr - SDR format definition
+ * @pixelformat:       little endian four character code (fourcc)
+ */
+struct v4l2_format_sdr {
+       __u32                           pixelformat;
+       __u8                            reserved[28];
+} __attribute__ ((packed));
+
 /**
  * struct v4l2_format - stream data format
  * @type:      enum v4l2_buf_type; type of the data stream
@@ -1712,6 +1722,7 @@ struct v4l2_format {
                struct v4l2_window              win;     /* V4L2_BUF_TYPE_VIDEO_OVERLAY */
                struct v4l2_vbi_format          vbi;     /* V4L2_BUF_TYPE_VBI_CAPTURE */
                struct v4l2_sliced_vbi_format   sliced;  /* V4L2_BUF_TYPE_SLICED_VBI_CAPTURE */
+               struct v4l2_format_sdr          sdr;     /* V4L2_BUF_TYPE_SDR_CAPTURE */
                __u8    raw_data[200];                   /* user-defined */
        } fmt;
 };