aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/DocBook/media/v4l/compat.xml4
-rw-r--r--Documentation/DocBook/media/v4l/dev-sdr.xml30
-rw-r--r--Documentation/DocBook/media/v4l/io.xml10
-rw-r--r--Documentation/DocBook/media/v4l/pixfmt.xml2
-rw-r--r--Documentation/DocBook/media/v4l/v4l2.xml1
-rw-r--r--Documentation/DocBook/media/v4l/vidioc-g-fmt.xml2
-rw-r--r--Documentation/DocBook/media/v4l/vidioc-querycap.xml6
7 files changed, 42 insertions, 13 deletions
diff --git a/Documentation/DocBook/media/v4l/compat.xml b/Documentation/DocBook/media/v4l/compat.xml
index 6c4e95146d16..5701a08ed792 100644
--- a/Documentation/DocBook/media/v4l/compat.xml
+++ b/Documentation/DocBook/media/v4l/compat.xml
@@ -2604,6 +2604,10 @@ and &v4l2-mbus-framefmt;.
2604 <para>Added <constant>V4L2_CID_RF_TUNER_RF_GAIN</constant> 2604 <para>Added <constant>V4L2_CID_RF_TUNER_RF_GAIN</constant>
2605RF Tuner control.</para> 2605RF Tuner control.</para>
2606 </listitem> 2606 </listitem>
2607 <listitem>
2608 <para>Added transmitter support for Software Defined Radio (SDR)
2609Interface.</para>
2610 </listitem>
2607 </orderedlist> 2611 </orderedlist>
2608 </section> 2612 </section>
2609 2613
diff --git a/Documentation/DocBook/media/v4l/dev-sdr.xml b/Documentation/DocBook/media/v4l/dev-sdr.xml
index 3344921354e8..a659771f7b7c 100644
--- a/Documentation/DocBook/media/v4l/dev-sdr.xml
+++ b/Documentation/DocBook/media/v4l/dev-sdr.xml
@@ -28,6 +28,16 @@ Devices supporting the SDR receiver interface set the
28<structfield>capabilities</structfield> field of &v4l2-capability; 28<structfield>capabilities</structfield> field of &v4l2-capability;
29returned by the &VIDIOC-QUERYCAP; ioctl. That flag means the device has an 29returned by the &VIDIOC-QUERYCAP; ioctl. That flag means the device has an
30Analog to Digital Converter (ADC), which is a mandatory element for the SDR receiver. 30Analog to Digital Converter (ADC), which is a mandatory element for the SDR receiver.
31 </para>
32 <para>
33Devices supporting the SDR transmitter interface set the
34<constant>V4L2_CAP_SDR_OUTPUT</constant> and
35<constant>V4L2_CAP_MODULATOR</constant> flag in the
36<structfield>capabilities</structfield> field of &v4l2-capability;
37returned by the &VIDIOC-QUERYCAP; ioctl. That flag means the device has an
38Digital to Analog Converter (DAC), which is a mandatory element for the SDR transmitter.
39 </para>
40 <para>
31At least one of the read/write, streaming or asynchronous I/O methods must 41At least one of the read/write, streaming or asynchronous I/O methods must
32be supported. 42be supported.
33 </para> 43 </para>
@@ -39,14 +49,15 @@ be supported.
39 <para> 49 <para>
40SDR devices can support <link linkend="control">controls</link>, and must 50SDR devices can support <link linkend="control">controls</link>, and must
41support the <link linkend="tuner">tuner</link> ioctls. Tuner ioctls are used 51support the <link linkend="tuner">tuner</link> ioctls. Tuner ioctls are used
42for setting the ADC sampling rate (sampling frequency) and the possible RF tuner 52for setting the ADC/DAC sampling rate (sampling frequency) and the possible
43frequency. 53radio frequency (RF).
44 </para> 54 </para>
45 55
46 <para> 56 <para>
47The <constant>V4L2_TUNER_SDR</constant> tuner type is used for SDR tuners, and 57The <constant>V4L2_TUNER_SDR</constant> tuner type is used for setting SDR
48the <constant>V4L2_TUNER_RF</constant> tuner type is used for RF tuners. The 58device ADC/DAC frequency, and the <constant>V4L2_TUNER_RF</constant>
49tuner index of the RF tuner (if any) must always follow the SDR tuner index. 59tuner type is used for setting radio frequency.
60The tuner index of the RF tuner (if any) must always follow the SDR tuner index.
50Normally the SDR tuner is #0 and the RF tuner is #1. 61Normally the SDR tuner is #0 and the RF tuner is #1.
51 </para> 62 </para>
52 63
@@ -59,9 +70,9 @@ The &VIDIOC-S-HW-FREQ-SEEK; ioctl is not supported.
59 <title>Data Format Negotiation</title> 70 <title>Data Format Negotiation</title>
60 71
61 <para> 72 <para>
62The SDR capture device uses the <link linkend="format">format</link> ioctls to 73The SDR device uses the <link linkend="format">format</link> ioctls to
63select the capture format. Both the sampling resolution and the data streaming 74select the capture and output format. Both the sampling resolution and the data
64format are bound to that selectable format. In addition to the basic 75streaming format are bound to that selectable format. In addition to the basic
65<link linkend="format">format</link> ioctls, the &VIDIOC-ENUM-FMT; ioctl 76<link linkend="format">format</link> ioctls, the &VIDIOC-ENUM-FMT; ioctl
66must be supported as well. 77must be supported as well.
67 </para> 78 </para>
@@ -69,7 +80,8 @@ must be supported as well.
69 <para> 80 <para>
70To use the <link linkend="format">format</link> ioctls applications set the 81To use the <link linkend="format">format</link> ioctls applications set the
71<structfield>type</structfield> field of a &v4l2-format; to 82<structfield>type</structfield> field of a &v4l2-format; to
72<constant>V4L2_BUF_TYPE_SDR_CAPTURE</constant> and use the &v4l2-sdr-format; 83<constant>V4L2_BUF_TYPE_SDR_CAPTURE</constant> or
84<constant>V4L2_BUF_TYPE_SDR_OUTPUT</constant> and use the &v4l2-sdr-format;
73<structfield>sdr</structfield> member of the <structfield>fmt</structfield> 85<structfield>sdr</structfield> member of the <structfield>fmt</structfield>
74union as needed per the desired operation. 86union as needed per the desired operation.
75Currently there is two fields, <structfield>pixelformat</structfield> and 87Currently there is two fields, <structfield>pixelformat</structfield> and
diff --git a/Documentation/DocBook/media/v4l/io.xml b/Documentation/DocBook/media/v4l/io.xml
index 7bbc2a48911e..da654031ef3f 100644
--- a/Documentation/DocBook/media/v4l/io.xml
+++ b/Documentation/DocBook/media/v4l/io.xml
@@ -1006,8 +1006,14 @@ must set this to 0.</entry>
1006 <row> 1006 <row>
1007 <entry><constant>V4L2_BUF_TYPE_SDR_CAPTURE</constant></entry> 1007 <entry><constant>V4L2_BUF_TYPE_SDR_CAPTURE</constant></entry>
1008 <entry>11</entry> 1008 <entry>11</entry>
1009 <entry>Buffer for Software Defined Radio (SDR), see <xref 1009 <entry>Buffer for Software Defined Radio (SDR) capture stream, see
1010 linkend="sdr" />.</entry> 1010 <xref linkend="sdr" />.</entry>
1011 </row>
1012 <row>
1013 <entry><constant>V4L2_BUF_TYPE_SDR_OUTPUT</constant></entry>
1014 <entry>12</entry>
1015 <entry>Buffer for Software Defined Radio (SDR) output stream, see
1016 <xref linkend="sdr" />.</entry>
1011 </row> 1017 </row>
1012 </tbody> 1018 </tbody>
1013 </tgroup> 1019 </tgroup>
diff --git a/Documentation/DocBook/media/v4l/pixfmt.xml b/Documentation/DocBook/media/v4l/pixfmt.xml
index 70cd0fd02e12..d871245d2973 100644
--- a/Documentation/DocBook/media/v4l/pixfmt.xml
+++ b/Documentation/DocBook/media/v4l/pixfmt.xml
@@ -1732,7 +1732,7 @@ extended control <constant>V4L2_CID_MPEG_STREAM_TYPE</constant>, see
1732 <section id="sdr-formats"> 1732 <section id="sdr-formats">
1733 <title>SDR Formats</title> 1733 <title>SDR Formats</title>
1734 1734
1735 <para>These formats are used for <link linkend="sdr">SDR Capture</link> 1735 <para>These formats are used for <link linkend="sdr">SDR</link>
1736interface only.</para> 1736interface only.</para>
1737 1737
1738 &sub-sdr-cu08; 1738 &sub-sdr-cu08;
diff --git a/Documentation/DocBook/media/v4l/v4l2.xml b/Documentation/DocBook/media/v4l/v4l2.xml
index 9cc4117644fc..0ceea3f5bf3a 100644
--- a/Documentation/DocBook/media/v4l/v4l2.xml
+++ b/Documentation/DocBook/media/v4l/v4l2.xml
@@ -157,6 +157,7 @@ applications. -->
157 <authorinitials>ap</authorinitials> 157 <authorinitials>ap</authorinitials>
158 <revremark>Renamed V4L2_TUNER_ADC to V4L2_TUNER_SDR. 158 <revremark>Renamed V4L2_TUNER_ADC to V4L2_TUNER_SDR.
159Added V4L2_CID_RF_TUNER_RF_GAIN control. 159Added V4L2_CID_RF_TUNER_RF_GAIN control.
160Added transmitter support for Software Defined Radio (SDR) Interface.
160 </revremark> 161 </revremark>
161 </revision> 162 </revision>
162 163
diff --git a/Documentation/DocBook/media/v4l/vidioc-g-fmt.xml b/Documentation/DocBook/media/v4l/vidioc-g-fmt.xml
index 4fe19a7a9a31..ffcb448251f0 100644
--- a/Documentation/DocBook/media/v4l/vidioc-g-fmt.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-g-fmt.xml
@@ -175,7 +175,7 @@ capture and output devices.</entry>
175 <entry>&v4l2-sdr-format;</entry> 175 <entry>&v4l2-sdr-format;</entry>
176 <entry><structfield>sdr</structfield></entry> 176 <entry><structfield>sdr</structfield></entry>
177 <entry>Definition of a data format, see 177 <entry>Definition of a data format, see
178<xref linkend="pixfmt" />, used by SDR capture devices.</entry> 178<xref linkend="pixfmt" />, used by SDR capture and output devices.</entry>
179 </row> 179 </row>
180 <row> 180 <row>
181 <entry></entry> 181 <entry></entry>
diff --git a/Documentation/DocBook/media/v4l/vidioc-querycap.xml b/Documentation/DocBook/media/v4l/vidioc-querycap.xml
index 20fda75a012d..cd82148dedd7 100644
--- a/Documentation/DocBook/media/v4l/vidioc-querycap.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-querycap.xml
@@ -308,6 +308,12 @@ modulator programming see
308fields.</entry> 308fields.</entry>
309 </row> 309 </row>
310 <row> 310 <row>
311 <entry><constant>V4L2_CAP_SDR_OUTPUT</constant></entry>
312 <entry>0x00400000</entry>
313 <entry>The device supports the
314<link linkend="sdr">SDR Output</link> interface.</entry>
315 </row>
316 <row>
311 <entry><constant>V4L2_CAP_READWRITE</constant></entry> 317 <entry><constant>V4L2_CAP_READWRITE</constant></entry>
312 <entry>0x01000000</entry> 318 <entry>0x01000000</entry>
313 <entry>The device supports the <link 319 <entry>The device supports the <link