diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-03-07 09:17:33 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 09:13:58 -0400 |
commit | e25436581f4117a0df9bf5539f6a7702a78df317 (patch) | |
tree | 3e06304a9ba175ad5f181f7da0ae45453aee3116 /Documentation/DocBook | |
parent | b09dfac83201812bf359e32a17afc7f6763ae379 (diff) |
[media] DocBook v4l2: update the G/S_EDID documentation
Document that it is now possible to call G/S_EDID from video nodes, not
just sub-device nodes. Add a note that -EINVAL will be returned if
the pad does not support EDIDs.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r-- | Documentation/DocBook/media/v4l/v4l2.xml | 2 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-g-edid.xml (renamed from Documentation/DocBook/media/v4l/vidioc-subdev-g-edid.xml) | 36 |
2 files changed, 24 insertions, 14 deletions
diff --git a/Documentation/DocBook/media/v4l/v4l2.xml b/Documentation/DocBook/media/v4l/v4l2.xml index 61a7bb1faccf..b445161b912c 100644 --- a/Documentation/DocBook/media/v4l/v4l2.xml +++ b/Documentation/DocBook/media/v4l/v4l2.xml | |||
@@ -607,6 +607,7 @@ and discussions on the V4L mailing list.</revremark> | |||
607 | &sub-g-crop; | 607 | &sub-g-crop; |
608 | &sub-g-ctrl; | 608 | &sub-g-ctrl; |
609 | &sub-g-dv-timings; | 609 | &sub-g-dv-timings; |
610 | &sub-g-edid; | ||
610 | &sub-g-enc-index; | 611 | &sub-g-enc-index; |
611 | &sub-g-ext-ctrls; | 612 | &sub-g-ext-ctrls; |
612 | &sub-g-fbuf; | 613 | &sub-g-fbuf; |
@@ -638,7 +639,6 @@ and discussions on the V4L mailing list.</revremark> | |||
638 | &sub-subdev-enum-frame-size; | 639 | &sub-subdev-enum-frame-size; |
639 | &sub-subdev-enum-mbus-code; | 640 | &sub-subdev-enum-mbus-code; |
640 | &sub-subdev-g-crop; | 641 | &sub-subdev-g-crop; |
641 | &sub-subdev-g-edid; | ||
642 | &sub-subdev-g-fmt; | 642 | &sub-subdev-g-fmt; |
643 | &sub-subdev-g-frame-interval; | 643 | &sub-subdev-g-frame-interval; |
644 | &sub-subdev-g-selection; | 644 | &sub-subdev-g-selection; |
diff --git a/Documentation/DocBook/media/v4l/vidioc-subdev-g-edid.xml b/Documentation/DocBook/media/v4l/vidioc-g-edid.xml index bbd18f0e6ede..ce4563b87131 100644 --- a/Documentation/DocBook/media/v4l/vidioc-subdev-g-edid.xml +++ b/Documentation/DocBook/media/v4l/vidioc-g-edid.xml | |||
@@ -1,12 +1,12 @@ | |||
1 | <refentry id="vidioc-subdev-g-edid"> | 1 | <refentry id="vidioc-g-edid"> |
2 | <refmeta> | 2 | <refmeta> |
3 | <refentrytitle>ioctl VIDIOC_SUBDEV_G_EDID, VIDIOC_SUBDEV_S_EDID</refentrytitle> | 3 | <refentrytitle>ioctl VIDIOC_G_EDID, VIDIOC_S_EDID</refentrytitle> |
4 | &manvol; | 4 | &manvol; |
5 | </refmeta> | 5 | </refmeta> |
6 | 6 | ||
7 | <refnamediv> | 7 | <refnamediv> |
8 | <refname>VIDIOC_SUBDEV_G_EDID</refname> | 8 | <refname>VIDIOC_G_EDID</refname> |
9 | <refname>VIDIOC_SUBDEV_S_EDID</refname> | 9 | <refname>VIDIOC_S_EDID</refname> |
10 | <refpurpose>Get or set the EDID of a video receiver/transmitter</refpurpose> | 10 | <refpurpose>Get or set the EDID of a video receiver/transmitter</refpurpose> |
11 | </refnamediv> | 11 | </refnamediv> |
12 | 12 | ||
@@ -16,7 +16,7 @@ | |||
16 | <funcdef>int <function>ioctl</function></funcdef> | 16 | <funcdef>int <function>ioctl</function></funcdef> |
17 | <paramdef>int <parameter>fd</parameter></paramdef> | 17 | <paramdef>int <parameter>fd</parameter></paramdef> |
18 | <paramdef>int <parameter>request</parameter></paramdef> | 18 | <paramdef>int <parameter>request</parameter></paramdef> |
19 | <paramdef>struct v4l2_subdev_edid *<parameter>argp</parameter></paramdef> | 19 | <paramdef>struct v4l2_edid *<parameter>argp</parameter></paramdef> |
20 | </funcprototype> | 20 | </funcprototype> |
21 | </funcsynopsis> | 21 | </funcsynopsis> |
22 | <funcsynopsis> | 22 | <funcsynopsis> |
@@ -24,7 +24,7 @@ | |||
24 | <funcdef>int <function>ioctl</function></funcdef> | 24 | <funcdef>int <function>ioctl</function></funcdef> |
25 | <paramdef>int <parameter>fd</parameter></paramdef> | 25 | <paramdef>int <parameter>fd</parameter></paramdef> |
26 | <paramdef>int <parameter>request</parameter></paramdef> | 26 | <paramdef>int <parameter>request</parameter></paramdef> |
27 | <paramdef>const struct v4l2_subdev_edid *<parameter>argp</parameter></paramdef> | 27 | <paramdef>const struct v4l2_edid *<parameter>argp</parameter></paramdef> |
28 | </funcprototype> | 28 | </funcprototype> |
29 | </funcsynopsis> | 29 | </funcsynopsis> |
30 | </refsynopsisdiv> | 30 | </refsynopsisdiv> |
@@ -42,7 +42,7 @@ | |||
42 | <varlistentry> | 42 | <varlistentry> |
43 | <term><parameter>request</parameter></term> | 43 | <term><parameter>request</parameter></term> |
44 | <listitem> | 44 | <listitem> |
45 | <para>VIDIOC_SUBDEV_G_EDID, VIDIOC_SUBDEV_S_EDID</para> | 45 | <para>VIDIOC_G_EDID, VIDIOC_S_EDID</para> |
46 | </listitem> | 46 | </listitem> |
47 | </varlistentry> | 47 | </varlistentry> |
48 | <varlistentry> | 48 | <varlistentry> |
@@ -56,12 +56,20 @@ | |||
56 | 56 | ||
57 | <refsect1> | 57 | <refsect1> |
58 | <title>Description</title> | 58 | <title>Description</title> |
59 | <para>These ioctls can be used to get or set an EDID associated with an input pad | 59 | <para>These ioctls can be used to get or set an EDID associated with an input |
60 | from a receiver or an output pad of a transmitter subdevice.</para> | 60 | from a receiver or an output of a transmitter device. They can be |
61 | used with subdevice nodes (/dev/v4l-subdevX) or with video nodes (/dev/videoX).</para> | ||
62 | |||
63 | <para>When used with video nodes the <structfield>pad</structfield> field represents the | ||
64 | input (for video capture devices) or output (for video output devices) index as | ||
65 | is returned by &VIDIOC-ENUMINPUT; and &VIDIOC-ENUMOUTPUT; respectively. When used | ||
66 | with subdevice nodes the <structfield>pad</structfield> field represents the | ||
67 | input or output pad of the subdevice. If there is no EDID support for the given | ||
68 | <structfield>pad</structfield> value, then the &EINVAL; will be returned.</para> | ||
61 | 69 | ||
62 | <para>To get the EDID data the application has to fill in the <structfield>pad</structfield>, | 70 | <para>To get the EDID data the application has to fill in the <structfield>pad</structfield>, |
63 | <structfield>start_block</structfield>, <structfield>blocks</structfield> and <structfield>edid</structfield> | 71 | <structfield>start_block</structfield>, <structfield>blocks</structfield> and <structfield>edid</structfield> |
64 | fields and call <constant>VIDIOC_SUBDEV_G_EDID</constant>. The current EDID from block | 72 | fields and call <constant>VIDIOC_G_EDID</constant>. The current EDID from block |
65 | <structfield>start_block</structfield> and of size <structfield>blocks</structfield> | 73 | <structfield>start_block</structfield> and of size <structfield>blocks</structfield> |
66 | will be placed in the memory <structfield>edid</structfield> points to. The <structfield>edid</structfield> | 74 | will be placed in the memory <structfield>edid</structfield> points to. The <structfield>edid</structfield> |
67 | pointer must point to memory at least <structfield>blocks</structfield> * 128 bytes | 75 | pointer must point to memory at least <structfield>blocks</structfield> * 128 bytes |
@@ -91,15 +99,17 @@ | |||
91 | data in some way. In any case, the end result is the same: the EDID is no longer available. | 99 | data in some way. In any case, the end result is the same: the EDID is no longer available. |
92 | </para> | 100 | </para> |
93 | 101 | ||
94 | <table pgwide="1" frame="none" id="v4l2-subdev-edid"> | 102 | <table pgwide="1" frame="none" id="v4l2-edid"> |
95 | <title>struct <structname>v4l2_subdev_edid</structname></title> | 103 | <title>struct <structname>v4l2_edid</structname></title> |
96 | <tgroup cols="3"> | 104 | <tgroup cols="3"> |
97 | &cs-str; | 105 | &cs-str; |
98 | <tbody valign="top"> | 106 | <tbody valign="top"> |
99 | <row> | 107 | <row> |
100 | <entry>__u32</entry> | 108 | <entry>__u32</entry> |
101 | <entry><structfield>pad</structfield></entry> | 109 | <entry><structfield>pad</structfield></entry> |
102 | <entry>Pad for which to get/set the EDID blocks.</entry> | 110 | <entry>Pad for which to get/set the EDID blocks. When used with a video device |
111 | node the pad represents the input or output index as returned by | ||
112 | &VIDIOC-ENUMINPUT; and &VIDIOC-ENUMOUTPUT; respectively.</entry> | ||
103 | </row> | 113 | </row> |
104 | <row> | 114 | <row> |
105 | <entry>__u32</entry> | 115 | <entry>__u32</entry> |