diff options
-rw-r--r-- | Documentation/DocBook/media/v4l/compat.xml | 4 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/dev-sdr.xml | 30 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/io.xml | 10 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/pixfmt.xml | 2 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/v4l2.xml | 1 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-g-fmt.xml | 2 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-querycap.xml | 6 |
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> |
2605 | RF Tuner control.</para> | 2605 | RF Tuner control.</para> |
2606 | </listitem> | 2606 | </listitem> |
2607 | <listitem> | ||
2608 | <para>Added transmitter support for Software Defined Radio (SDR) | ||
2609 | Interface.</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; |
29 | returned by the &VIDIOC-QUERYCAP; ioctl. That flag means the device has an | 29 | returned by the &VIDIOC-QUERYCAP; ioctl. That flag means the device has an |
30 | Analog to Digital Converter (ADC), which is a mandatory element for the SDR receiver. | 30 | Analog to Digital Converter (ADC), which is a mandatory element for the SDR receiver. |
31 | </para> | ||
32 | <para> | ||
33 | Devices 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; | ||
37 | returned by the &VIDIOC-QUERYCAP; ioctl. That flag means the device has an | ||
38 | Digital to Analog Converter (DAC), which is a mandatory element for the SDR transmitter. | ||
39 | </para> | ||
40 | <para> | ||
31 | At least one of the read/write, streaming or asynchronous I/O methods must | 41 | At least one of the read/write, streaming or asynchronous I/O methods must |
32 | be supported. | 42 | be supported. |
33 | </para> | 43 | </para> |
@@ -39,14 +49,15 @@ be supported. | |||
39 | <para> | 49 | <para> |
40 | SDR devices can support <link linkend="control">controls</link>, and must | 50 | SDR devices can support <link linkend="control">controls</link>, and must |
41 | support the <link linkend="tuner">tuner</link> ioctls. Tuner ioctls are used | 51 | support the <link linkend="tuner">tuner</link> ioctls. Tuner ioctls are used |
42 | for setting the ADC sampling rate (sampling frequency) and the possible RF tuner | 52 | for setting the ADC/DAC sampling rate (sampling frequency) and the possible |
43 | frequency. | 53 | radio frequency (RF). |
44 | </para> | 54 | </para> |
45 | 55 | ||
46 | <para> | 56 | <para> |
47 | The <constant>V4L2_TUNER_SDR</constant> tuner type is used for SDR tuners, and | 57 | The <constant>V4L2_TUNER_SDR</constant> tuner type is used for setting SDR |
48 | the <constant>V4L2_TUNER_RF</constant> tuner type is used for RF tuners. The | 58 | device ADC/DAC frequency, and the <constant>V4L2_TUNER_RF</constant> |
49 | tuner index of the RF tuner (if any) must always follow the SDR tuner index. | 59 | tuner type is used for setting radio frequency. |
60 | The tuner index of the RF tuner (if any) must always follow the SDR tuner index. | ||
50 | Normally the SDR tuner is #0 and the RF tuner is #1. | 61 | Normally 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> |
62 | The SDR capture device uses the <link linkend="format">format</link> ioctls to | 73 | The SDR device uses the <link linkend="format">format</link> ioctls to |
63 | select the capture format. Both the sampling resolution and the data streaming | 74 | select the capture and output format. Both the sampling resolution and the data |
64 | format are bound to that selectable format. In addition to the basic | 75 | streaming 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 |
66 | must be supported as well. | 77 | must be supported as well. |
67 | </para> | 78 | </para> |
@@ -69,7 +80,8 @@ must be supported as well. | |||
69 | <para> | 80 | <para> |
70 | To use the <link linkend="format">format</link> ioctls applications set the | 81 | To 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> |
74 | union as needed per the desired operation. | 86 | union as needed per the desired operation. |
75 | Currently there is two fields, <structfield>pixelformat</structfield> and | 87 | Currently 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> |
1736 | interface only.</para> | 1736 | interface 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. |
159 | Added V4L2_CID_RF_TUNER_RF_GAIN control. | 159 | Added V4L2_CID_RF_TUNER_RF_GAIN control. |
160 | Added 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 | |||
308 | fields.</entry> | 308 | fields.</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 |