[media] media.h: get rid of MEDIA_ENT_F_CONN_TEST
[cascardo/linux.git] / Documentation / DocBook / media / v4l / media-types.xml
1 <section id="media-controller-types">
2 <title>Types and flags used to represent the media graph elements</title>
3
4     <table frame="none" pgwide="1" id="media-entity-type">
5       <title>Media entity types</title>
6       <tgroup cols="2">
7         <colspec colname="c1"/>
8         <colspec colname="c2"/>
9         <tbody valign="top">
10           <row>
11             <entry><constant>MEDIA_ENT_F_UNKNOWN</constant> and <constant>MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN</constant></entry>
12             <entry>Unknown entity. That generally indicates that
13             a driver didn't initialize properly the entity, with is a Kernel bug</entry>
14           </row>
15           <row>
16             <entry><constant>MEDIA_ENT_F_IO_V4L</constant></entry>
17             <entry>Data streaming input and/or output entity.</entry>
18           </row>
19           <row>
20             <entry><constant>MEDIA_ENT_F_IO_VBI</constant></entry>
21             <entry>V4L VBI streaming input or output entity</entry>
22           </row>
23           <row>
24             <entry><constant>MEDIA_ENT_F_IO_SWRADIO</constant></entry>
25             <entry>V4L Software Digital Radio (SDR) streaming input or output entity</entry>
26           </row>
27           <row>
28             <entry><constant>MEDIA_ENT_F_IO_DTV</constant></entry>
29             <entry>DVB Digital TV streaming input or output entity</entry>
30           </row>
31           <row>
32             <entry><constant>MEDIA_ENT_F_DTV_DEMOD</constant></entry>
33             <entry>Digital TV demodulator entity.</entry>
34           </row>
35           <row>
36             <entry><constant>MEDIA_ENT_F_TS_DEMUX</constant></entry>
37             <entry>MPEG Transport stream demux entity. Could be implemented on hardware or in Kernelspace by the Linux DVB subsystem.</entry>
38           </row>
39           <row>
40             <entry><constant>MEDIA_ENT_F_DTV_CA</constant></entry>
41             <entry>Digital TV Conditional Access module (CAM) entity</entry>
42           </row>
43           <row>
44             <entry><constant>MEDIA_ENT_F_DTV_NET_DECAP</constant></entry>
45             <entry>Digital TV network ULE/MLE desencapsulation entity. Could be implemented on hardware or in Kernelspace</entry>
46           </row>
47           <row>
48             <entry><constant>MEDIA_ENT_F_CONN_RF</constant></entry>
49             <entry>Connector for a Radio Frequency (RF) signal.</entry>
50           </row>
51           <row>
52             <entry><constant>MEDIA_ENT_F_CONN_SVIDEO</constant></entry>
53             <entry>Connector for a S-Video signal.</entry>
54           </row>
55           <row>
56             <entry><constant>MEDIA_ENT_F_CONN_COMPOSITE</constant></entry>
57             <entry>Connector for a RGB composite signal.</entry>
58           </row>
59           <row>
60             <entry><constant>MEDIA_ENT_F_CAM_SENSOR</constant></entry>
61             <entry>Camera video sensor entity.</entry>
62           </row>
63           <row>
64             <entry><constant>MEDIA_ENT_F_FLASH</constant></entry>
65             <entry>Flash controller entity.</entry>
66           </row>
67           <row>
68             <entry><constant>MEDIA_ENT_F_LENS</constant></entry>
69             <entry>Lens controller entity.</entry>
70           </row>
71           <row>
72             <entry><constant>MEDIA_ENT_F_ATV_DECODER</constant></entry>
73             <entry>Analog video decoder, the basic function of the video decoder
74             is to accept analogue video from a wide variety of sources such as
75             broadcast, DVD players, cameras and video cassette recorders, in
76             either NTSC, PAL, SECAM or HD format, separating the stream
77             into its component parts, luminance and chrominance, and output
78             it in some digital video standard, with appropriate timing
79             signals.</entry>
80           </row>
81           <row>
82             <entry><constant>MEDIA_ENT_F_TUNER</constant></entry>
83             <entry>Digital TV, analog TV, radio and/or software radio tuner,
84                    with consists on a PLL tuning stage that converts radio
85                    frequency (RF) signal into an Intermediate Frequency (IF).
86                    Modern tuners have internally IF-PLL decoders for audio
87                    and video, but older models have those stages implemented
88                    on separate entities.
89             </entry>
90           </row>
91           <row>
92             <entry><constant>MEDIA_ENT_F_IF_VID_DECODER</constant></entry>
93             <entry>IF-PLL video decoder. It receives the IF from a PLL
94                    and decodes the analog TV video signal. This is commonly
95                    found on some very old analog tuners, like Philips MK3
96                    designs. They all contain a tda9887 (or some software
97                    compatible similar chip, like tda9885). Those devices
98                    use a different I2C address than the tuner PLL.
99             </entry>
100           </row>
101           <row>
102             <entry><constant>MEDIA_ENT_F_IF_AUD_DECODER</constant></entry>
103             <entry>IF-PLL sound decoder. It receives the IF from a PLL
104                    and decodes the analog TV audio signal. This is commonly
105                    found on some very old analog hardware, like Micronas
106                    msp3400, Philips tda9840, tda985x, etc. Those devices
107                    use a different I2C address than the tuner PLL and
108                    should be controlled together with the IF-PLL video
109                    decoder.
110             </entry>
111           </row>
112         </tbody>
113       </tgroup>
114     </table>
115
116     <table frame="none" pgwide="1" id="media-entity-flag">
117       <title>Media entity flags</title>
118       <tgroup cols="2">
119         <colspec colname="c1"/>
120         <colspec colname="c2"/>
121         <tbody valign="top">
122           <row>
123             <entry><constant>MEDIA_ENT_FL_DEFAULT</constant></entry>
124             <entry>Default entity for its type. Used to discover the default
125             audio, VBI and video devices, the default camera sensor, ...</entry>
126           </row>
127           <row>
128             <entry><constant>MEDIA_ENT_FL_CONNECTOR</constant></entry>
129             <entry>The entity represents a data conector</entry>
130           </row>
131         </tbody>
132       </tgroup>
133     </table>
134
135     <table frame="none" pgwide="1" id="media-intf-type">
136       <title>Media interface types</title>
137       <tgroup cols="3">
138         <colspec colname="c1"/>
139         <colspec colname="c2"/>
140         <colspec colname="c3"/>
141         <tbody valign="top">
142           <row>
143             <entry><constant>MEDIA_INTF_T_DVB_FE</constant></entry>
144             <entry>Device node interface for the Digital TV frontend</entry>
145             <entry>typically, /dev/dvb/adapter?/frontend?</entry>
146           </row>
147           <row>
148             <entry><constant>MEDIA_INTF_T_DVB_DEMUX</constant></entry>
149             <entry>Device node interface for the Digital TV demux</entry>
150             <entry>typically, /dev/dvb/adapter?/demux?</entry>
151           </row>
152           <row>
153             <entry><constant>MEDIA_INTF_T_DVB_DVR</constant></entry>
154             <entry>Device node interface for the Digital TV DVR</entry>
155             <entry>typically, /dev/dvb/adapter?/dvr?</entry>
156           </row>
157           <row>
158             <entry><constant>MEDIA_INTF_T_DVB_CA</constant></entry>
159             <entry>Device node interface for the Digital TV Conditional Access</entry>
160             <entry>typically, /dev/dvb/adapter?/ca?</entry>
161           </row>
162           <row>
163             <entry><constant>MEDIA_INTF_T_DVB_FE</constant></entry>
164             <entry>Device node interface for the Digital TV network control</entry>
165             <entry>typically, /dev/dvb/adapter?/net?</entry>
166           </row>
167           <row>
168             <entry><constant>MEDIA_INTF_T_V4L_VIDEO</constant></entry>
169             <entry>Device node interface for video (V4L)</entry>
170             <entry>typically, /dev/video?</entry>
171           </row>
172           <row>
173             <entry><constant>MEDIA_INTF_T_V4L_VBI</constant></entry>
174             <entry>Device node interface for VBI (V4L)</entry>
175             <entry>typically, /dev/vbi?</entry>
176           </row>
177           <row>
178             <entry><constant>MEDIA_INTF_T_V4L_RADIO</constant></entry>
179             <entry>Device node interface for radio (V4L)</entry>
180             <entry>typically, /dev/vbi?</entry>
181           </row>
182           <row>
183             <entry><constant>MEDIA_INTF_T_V4L_SUBDEV</constant></entry>
184             <entry>Device node interface for a V4L subdevice</entry>
185             <entry>typically, /dev/v4l-subdev?</entry>
186           </row>
187           <row>
188             <entry><constant>MEDIA_INTF_T_V4L_SWRADIO</constant></entry>
189             <entry>Device node interface for Software Defined Radio (V4L)</entry>
190             <entry>typically, /dev/swradio?</entry>
191           </row>
192         </tbody>
193       </tgroup>
194     </table>
195
196     <table frame="none" pgwide="1" id="media-pad-flag">
197       <title>Media pad flags</title>
198       <tgroup cols="2">
199         <colspec colname="c1"/>
200         <colspec colname="c2"/>
201         <tbody valign="top">
202           <row>
203             <entry><constant>MEDIA_PAD_FL_SINK</constant></entry>
204             <entry>Input pad, relative to the entity. Input pads sink data and
205             are targets of links.</entry>
206           </row>
207           <row>
208             <entry><constant>MEDIA_PAD_FL_SOURCE</constant></entry>
209             <entry>Output pad, relative to the entity. Output pads source data
210             and are origins of links.</entry>
211           </row>
212           <row>
213             <entry><constant>MEDIA_PAD_FL_MUST_CONNECT</constant></entry>
214             <entry>If this flag is set and the pad is linked to any other
215             pad, then at least one of those links must be enabled for the
216             entity to be able to stream. There could be temporary reasons
217             (e.g. device configuration dependent) for the pad to need
218             enabled links even when this flag isn't set; the absence of the
219             flag doesn't imply there is none.</entry>
220           </row>
221         </tbody>
222       </tgroup>
223     </table>
224
225     <para>One and only one of <constant>MEDIA_PAD_FL_SINK</constant> and
226     <constant>MEDIA_PAD_FL_SOURCE</constant> must be set for every pad.</para>
227
228     <table frame="none" pgwide="1" id="media-link-flag">
229       <title>Media link flags</title>
230       <tgroup cols="2">
231         <colspec colname="c1"/>
232         <colspec colname="c2"/>
233         <tbody valign="top">
234           <row>
235             <entry><constant>MEDIA_LNK_FL_ENABLED</constant></entry>
236             <entry>The link is enabled and can be used to transfer media data.
237             When two or more links target a sink pad, only one of them can be
238             enabled at a time.</entry>
239           </row>
240           <row>
241             <entry><constant>MEDIA_LNK_FL_IMMUTABLE</constant></entry>
242             <entry>The link enabled state can't be modified at runtime. An
243             immutable link is always enabled.</entry>
244           </row>
245           <row>
246             <entry><constant>MEDIA_LNK_FL_DYNAMIC</constant></entry>
247             <entry>The link enabled state can be modified during streaming. This
248             flag is set by drivers and is read-only for applications.</entry>
249           </row>
250           <row>
251             <entry><constant>MEDIA_LNK_FL_LINK_TYPE</constant></entry>
252             <entry><para>This is a bitmask that defines the type of the link.
253                    Currently, two types of links are supported:</para>
254             <para><constant>MEDIA_LNK_FL_DATA_LINK</constant>
255             if the link is between two pads</para>
256             <para><constant>MEDIA_LNK_FL_INTERFACE_LINK</constant>
257             if the link is between an interface and an entity</para></entry>
258           </row>
259         </tbody>
260       </tgroup>
261     </table>
262
263 </section>