~ubuntu-branches/ubuntu/trusty/linux-armadaxp/trusty

« back to all changes in this revision

Viewing changes to Documentation/DocBook/v4l/vidioc-enumoutput.xml

  • Committer: Package Import Robot
  • Author(s): Michael Casadevall, Bryan Wu, Dann Frazier, Michael Casadeall
  • Date: 2012-03-10 15:00:54 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120310150054-flugb39zon8vvgwe
Tags: 3.2.0-1600.1
[ Bryan Wu ]
* UBUNTU: import debian/debian.env and debian.armadaxp

[ Dann Frazier ]
* ARM: Armada XP: remove trailing '/' in dirnames in mvRules.mk

[ Michael Casadeall ]
* tools: add some tools for Marvell Armada XP processor
* kernel: timer tick hacking from Marvell
* kernel: Sheeva Errata: add delay on Sheeva when powering down
* net: add Marvell NFP netfilter
* net: socket and skb modifications made by Marvell
* miscdevice: add minor IDs for some Marvell Armada drivers
* fs: introduce memory pool for splice()
* video: EDID detection updates from Marvell Armada XP patchset
* video: backlight: add Marvell Dove LCD backlight driver
* video: display: add THS8200 display driver
* video: framebuffer: add Marvell Dove and Armada XP processor onchip LCD controller driver
* usbtest: add Interrupt transfer testing by Marvell Armada XP code
* usb: ehci: add support for Marvell EHCI controler
* tty/serial: 8250: add support for Marvell Armada XP processor and DeviceTree work
* rtc: add support for Marvell Armada XP onchip RTC controller
* net: pppoe: add Marvell ethernet NFP hook in PPPoE networking driver
* mtd: nand: add support for Marvell Armada XP Nand Flash Controller
* mtd: maps: add Marvell Armada XP specific map driver
* mmc: add support for Marvell Armada XP MMC/SD host controller
* i2c: add support for Marvell Armada XP onchip i2c bus controller
* hwmon: add Kconfig option for Armada XP onchip thermal sensor driver
* dmaengine: add Net DMA support for splice and update Marvell XOR DMA engine driver
* ata: add support for Marvell Armada XP SATA controller and update some quirks
* ARM: add Marvell Armada XP machine to mach-types
* ARM: oprofile: add support for Marvell PJ4B core
* ARM: mm: more ARMv6 switches for Marvell Armada XP
* ARM: remove static declaration to allow compilation
* ARM: alignment access fault trick
* ARM: mm: skip some fault fixing when run on NONE SMP ARMv6 mode during early abort event
* ARM: mm: add Marvell Sheeva CPU Architecture for PJ4B
* ARM: introduce optimized copy operation for Marvell Armada XP
* ARM: SAUCE: hardware breakpoint trick for Marvell Armada XP
* ARM: big endian and little endian tricks for Marvell Armada XP
* ARM: SAUCE: Add Marvell Armada XP build rules to arch/arm/kernel/Makefile
* ARM: vfp: add special handling for Marvell Armada XP
* ARM: add support for Marvell U-Boot
* ARM: add mv_controller_num for ARM PCI drivers
* ARM: add support for local PMUs, general SMP tweaks and cache flushing
* ARM: add Marvell device identifies in glue-proc.h
* ARM: add IPC driver support for Marvell platforms
* ARM: add DMA mapping for Marvell platforms
* ARM: add Sheeva errata and PJ4B code for booting
* ARM: update Kconfig and Makefile to include Marvell Armada XP platforms
* ARM: Armada XP: import LSP from Marvell for Armada XP 3.2 kernel enablement

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<refentry id="vidioc-enumoutput">
2
 
  <refmeta>
3
 
    <refentrytitle>ioctl VIDIOC_ENUMOUTPUT</refentrytitle>
4
 
    &manvol;
5
 
  </refmeta>
6
 
 
7
 
  <refnamediv>
8
 
    <refname>VIDIOC_ENUMOUTPUT</refname>
9
 
    <refpurpose>Enumerate video outputs</refpurpose>
10
 
  </refnamediv>
11
 
 
12
 
  <refsynopsisdiv>
13
 
    <funcsynopsis>
14
 
      <funcprototype>
15
 
        <funcdef>int <function>ioctl</function></funcdef>
16
 
        <paramdef>int <parameter>fd</parameter></paramdef>
17
 
        <paramdef>int <parameter>request</parameter></paramdef>
18
 
        <paramdef>struct v4l2_output *<parameter>argp</parameter></paramdef>
19
 
      </funcprototype>
20
 
    </funcsynopsis>
21
 
  </refsynopsisdiv>
22
 
 
23
 
  <refsect1>
24
 
    <title>Arguments</title>
25
 
 
26
 
    <variablelist>
27
 
      <varlistentry>
28
 
        <term><parameter>fd</parameter></term>
29
 
        <listitem>
30
 
          <para>&fd;</para>
31
 
        </listitem>
32
 
      </varlistentry>
33
 
      <varlistentry>
34
 
        <term><parameter>request</parameter></term>
35
 
        <listitem>
36
 
          <para>VIDIOC_ENUMOUTPUT</para>
37
 
        </listitem>
38
 
      </varlistentry>
39
 
      <varlistentry>
40
 
        <term><parameter>argp</parameter></term>
41
 
        <listitem>
42
 
          <para></para>
43
 
        </listitem>
44
 
      </varlistentry>
45
 
    </variablelist>
46
 
  </refsect1>
47
 
 
48
 
  <refsect1>
49
 
    <title>Description</title>
50
 
 
51
 
    <para>To query the attributes of a video outputs applications
52
 
initialize the <structfield>index</structfield> field of &v4l2-output;
53
 
and call the <constant>VIDIOC_ENUMOUTPUT</constant> ioctl with a
54
 
pointer to this structure. Drivers fill the rest of the structure or
55
 
return an &EINVAL; when the index is out of bounds. To enumerate all
56
 
outputs applications shall begin at index zero, incrementing by one
57
 
until the driver returns <errorcode>EINVAL</errorcode>.</para>
58
 
 
59
 
    <table frame="none" pgwide="1" id="v4l2-output">
60
 
      <title>struct <structname>v4l2_output</structname></title>
61
 
      <tgroup cols="3">
62
 
        &cs-str;
63
 
        <tbody valign="top">
64
 
          <row>
65
 
            <entry>__u32</entry>
66
 
            <entry><structfield>index</structfield></entry>
67
 
            <entry>Identifies the output, set by the
68
 
application.</entry>
69
 
          </row>
70
 
          <row>
71
 
            <entry>__u8</entry>
72
 
            <entry><structfield>name</structfield>[32]</entry>
73
 
            <entry>Name of the video output, a NUL-terminated ASCII
74
 
string, for example: "Vout". This information is intended for the
75
 
user, preferably the connector label on the device itself.</entry>
76
 
          </row>
77
 
          <row>
78
 
            <entry>__u32</entry>
79
 
            <entry><structfield>type</structfield></entry>
80
 
            <entry>Type of the output, see <xref
81
 
                linkend="output-type" />.</entry>
82
 
          </row>
83
 
          <row>
84
 
            <entry>__u32</entry>
85
 
            <entry><structfield>audioset</structfield></entry>
86
 
            <entry><para>Drivers can enumerate up to 32 video and
87
 
audio outputs. This field shows which audio outputs were
88
 
selectable as the current output if this was the currently selected
89
 
video output. It is a bit mask. The LSB corresponds to audio output 0,
90
 
the MSB to output 31. Any number of bits can be set, or
91
 
none.</para><para>When the driver does not enumerate audio outputs no
92
 
bits must be set. Applications shall not interpret this as lack of
93
 
audio support. Drivers may automatically select audio outputs without
94
 
enumerating them.</para><para>For details on audio outputs and how to
95
 
select the current output see <xref linkend="audio" />.</para></entry>
96
 
          </row>
97
 
          <row>
98
 
            <entry>__u32</entry>
99
 
            <entry><structfield>modulator</structfield></entry>
100
 
            <entry>Output devices can have zero or more RF modulators.
101
 
When the <structfield>type</structfield> is
102
 
<constant>V4L2_OUTPUT_TYPE_MODULATOR</constant> this is an RF
103
 
connector and this field identifies the modulator. It corresponds to
104
 
&v4l2-modulator; field <structfield>index</structfield>. For details
105
 
on modulators see <xref linkend="tuner" />.</entry>
106
 
          </row>
107
 
          <row>
108
 
            <entry>&v4l2-std-id;</entry>
109
 
            <entry><structfield>std</structfield></entry>
110
 
            <entry>Every video output supports one or more different
111
 
video standards. This field is a set of all supported standards. For
112
 
details on video standards and how to switch see <xref
113
 
                linkend="standard" />.</entry>
114
 
          </row>
115
 
          <row>
116
 
            <entry>__u32</entry>
117
 
            <entry><structfield>capabilities</structfield></entry>
118
 
            <entry>This field provides capabilities for the
119
 
output. See <xref linkend="output-capabilities" /> for flags.</entry>
120
 
          </row>
121
 
          <row>
122
 
            <entry>__u32</entry>
123
 
            <entry><structfield>reserved</structfield>[3]</entry>
124
 
            <entry>Reserved for future extensions. Drivers must set
125
 
the array to zero.</entry>
126
 
          </row>
127
 
        </tbody>
128
 
      </tgroup>
129
 
    </table>
130
 
 
131
 
    <table frame="none" pgwide="1" id="output-type">
132
 
      <title>Output Type</title>
133
 
      <tgroup cols="3">
134
 
        &cs-def;
135
 
        <tbody valign="top">
136
 
          <row>
137
 
            <entry><constant>V4L2_OUTPUT_TYPE_MODULATOR</constant></entry>
138
 
            <entry>1</entry>
139
 
            <entry>This output is an analog TV modulator.</entry>
140
 
          </row>
141
 
          <row>
142
 
            <entry><constant>V4L2_OUTPUT_TYPE_ANALOG</constant></entry>
143
 
            <entry>2</entry>
144
 
            <entry>Analog baseband output, for example Composite /
145
 
CVBS, S-Video, RGB.</entry>
146
 
          </row>
147
 
          <row>
148
 
            <entry><constant>V4L2_OUTPUT_TYPE_ANALOGVGAOVERLAY</constant></entry>
149
 
            <entry>3</entry>
150
 
            <entry>[?]</entry>
151
 
          </row>
152
 
        </tbody>
153
 
      </tgroup>
154
 
    </table>
155
 
 
156
 
    <!-- Capabilities flags based on video timings RFC by Muralidharan
157
 
Karicheri, titled RFC (v1.2): V4L - Support for video timings at the
158
 
input/output interface to linux-media@vger.kernel.org on 19 Oct 2009.
159
 
        -->
160
 
    <table frame="none" pgwide="1" id="output-capabilities">
161
 
      <title>Output capabilities</title>
162
 
      <tgroup cols="3">
163
 
        &cs-def;
164
 
        <tbody valign="top">
165
 
          <row>
166
 
            <entry><constant>V4L2_OUT_CAP_PRESETS</constant></entry>
167
 
            <entry>0x00000001</entry>
168
 
            <entry>This output supports setting DV presets by using VIDIOC_S_DV_PRESET.</entry>
169
 
          </row>
170
 
          <row>
171
 
            <entry><constant>V4L2_OUT_CAP_CUSTOM_TIMINGS</constant></entry>
172
 
            <entry>0x00000002</entry>
173
 
            <entry>This output supports setting custom video timings by using VIDIOC_S_DV_TIMINGS.</entry>
174
 
          </row>
175
 
          <row>
176
 
            <entry><constant>V4L2_OUT_CAP_STD</constant></entry>
177
 
            <entry>0x00000004</entry>
178
 
            <entry>This output supports setting the TV standard by using VIDIOC_S_STD.</entry>
179
 
          </row>
180
 
        </tbody>
181
 
      </tgroup>
182
 
    </table>
183
 
 
184
 
  </refsect1>
185
 
  <refsect1>
186
 
    &return-value;
187
 
 
188
 
    <variablelist>
189
 
      <varlistentry>
190
 
        <term><errorcode>EINVAL</errorcode></term>
191
 
        <listitem>
192
 
          <para>The &v4l2-output; <structfield>index</structfield>
193
 
is out of bounds.</para>
194
 
        </listitem>
195
 
      </varlistentry>
196
 
    </variablelist>
197
 
  </refsect1>
198
 
</refentry>
199
 
 
200
 
<!--
201
 
Local Variables:
202
 
mode: sgml
203
 
sgml-parent-document: "v4l2.sgml"
204
 
indent-tabs-mode: nil
205
 
End:
206
 
-->