blob: ba1d704e49107ed1113c7632fa750ddb6224d36c [file] [log] [blame]
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001<?xml version="1.0"?>
Andrzej Hajda8bfd4a62013-06-28 05:34:20 -03002<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
Mauro Carvalho Chehabd80bd702009-09-15 15:27:57 -03004<!ENTITY % media-entities SYSTEM "./media-entities.tmpl"> %media-entities;
5<!ENTITY media-indices SYSTEM "./media-indices.tmpl">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03006
7<!ENTITY eg "e.&nbsp;g.">
8<!ENTITY ie "i.&nbsp;e.">
9<!ENTITY fd "File descriptor returned by <link linkend='func-open'><function>open()</function></link>.">
10<!ENTITY i2c "I<superscript>2</superscript>C">
Mauro Carvalho Chehab6d172492011-07-05 10:07:37 -030011<!ENTITY return-value "<title>Return Value</title><para>On success <returnvalue>0</returnvalue> is returned, on error <returnvalue>-1</returnvalue> and the <varname>errno</varname> variable is set appropriately. The generic error codes are described at the <link linkend='gen-errors'>Generic Error Codes</link> chapter.</para>">
Mauro Carvalho Chehab3de530f2011-07-05 12:36:01 -030012<!ENTITY return-value-dvb "<para>RETURN VALUE</para><para>On success <returnvalue>0</returnvalue> is returned, on error <returnvalue>-1</returnvalue> and the <varname>errno</varname> variable is set appropriately. The generic error codes are described at the <link linkend='gen-errors'>Generic Error Codes</link> chapter.</para>">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030013<!ENTITY manvol "<manvolnum>2</manvolnum>">
14
15<!-- Table templates: structs, structs w/union, defines. -->
16<!ENTITY cs-str "<colspec colname='c1' colwidth='1*' /><colspec colname='c2' colwidth='1*' /><colspec colname='c3' colwidth='2*' /><spanspec spanname='hspan' namest='c1' nameend='c3' />">
17<!ENTITY cs-ustr "<colspec colname='c1' colwidth='1*' /><colspec colname='c2' colwidth='1*' /><colspec colname='c3' colwidth='1*' /><colspec colname='c4' colwidth='2*' /><spanspec spanname='hspan' namest='c1' nameend='c4' />">
18<!ENTITY cs-def "<colspec colname='c1' colwidth='3*' /><colspec colname='c2' colwidth='1*' /><colspec colname='c3' colwidth='4*' /><spanspec spanname='hspan' namest='c1' nameend='c3' />">
19
20<!-- Video for Linux mailing list address. -->
21<!ENTITY v4l-ml "<ulink url='http://www.linuxtv.org/lists.php'>http://www.linuxtv.org/lists.php</ulink>">
22
23<!-- LinuxTV v4l-dvb repository. -->
24<!ENTITY v4l-dvb "<ulink url='http://linuxtv.org/repo/'>http://linuxtv.org/repo/</ulink>">
Laurent Pinchartf57fa212013-06-05 04:19:53 -030025<!ENTITY dash-ent-8 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>">
Sylwester Nawrockib01189b2012-11-28 14:40:32 -030026<!ENTITY dash-ent-10 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>">
Laurent Pinchartf57fa212013-06-05 04:19:53 -030027<!ENTITY dash-ent-12 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>">
28<!ENTITY dash-ent-14 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>">
Phil Edworthy7b88fc02013-03-18 08:47:59 -030029<!ENTITY dash-ent-16 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>">
Laurent Pinchartf57fa212013-06-05 04:19:53 -030030<!ENTITY dash-ent-20 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>">
31<!ENTITY dash-ent-22 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>">
32<!ENTITY dash-ent-24 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030033]>
34
35<book id="media_api">
36<bookinfo>
37<title>LINUX MEDIA INFRASTRUCTURE API</title>
38
39<copyright>
Hans Verkuil1b962082014-01-07 06:46:37 -030040 <year>2009-2014</year>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030041 <holder>LinuxTV Developers</holder>
42</copyright>
43
44<legalnotice>
45
46<para>Permission is granted to copy, distribute and/or modify
47this document under the terms of the GNU Free Documentation License,
48Version 1.1 or any later version published by the Free Software
49Foundation. A copy of the license is included in the chapter entitled
50"GNU Free Documentation License"</para>
51</legalnotice>
52
53</bookinfo>
54
55<toc></toc> <!-- autogenerated -->
56
57<preface>
58 <title>Introduction</title>
59
60 <para>This document covers the Linux Kernel to Userspace API's used by
Hans Verkuil1b962082014-01-07 06:46:37 -030061 video and radio streaming devices, including video cameras,
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030062 analog and digital TV receiver cards, AM/FM receiver cards,
Hans Verkuil1b962082014-01-07 06:46:37 -030063 streaming capture and output devices, codec devices and remote
64 controllers.</para>
Hans Verkuil571d19c2012-08-09 06:04:43 -030065 <para>It is divided into four parts.</para>
Hans Verkuil1b962082014-01-07 06:46:37 -030066 <para>The first part covers radio, video capture and output,
67 cameras, analog TV devices and codecs.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030068 <para>The second part covers the
69 API used for digital TV and Internet reception via one of the
70 several digital tv standards. While it is called as DVB API,
71 in fact it covers several different video standards including
72 DVB-T, DVB-S, DVB-C and ATSC. The API is currently being updated
73 to documment support also for DVB-S2, ISDB-T and ISDB-S.</para>
Hans Verkuil571d19c2012-08-09 06:04:43 -030074 <para>The third part covers the Remote Controller API.</para>
75 <para>The fourth part covers the Media Controller API.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030076 <para>For additional information and for the latest development code,
77 see: <ulink url="http://linuxtv.org">http://linuxtv.org</ulink>.</para>
78 <para>For discussing improvements, reporting troubles, sending new drivers, etc, please mail to: <ulink url="http://vger.kernel.org/vger-lists.html#linux-media">Linux Media Mailing List (LMML).</ulink>.</para>
79
80</preface>
81
82<part id="v4l2spec">
83&sub-v4l2;
84</part>
85<part id="dvbapi">
86&sub-dvbapi;
87</part>
88<part id="v4ldvb_common">
89<partinfo>
90<authorgroup>
91<author>
92<firstname>Mauro</firstname>
93<surname>Chehab</surname>
94<othername role="mi">Carvalho</othername>
Hans Verkuil7183eeb2014-01-07 06:41:16 -030095<affiliation><address><email>m.chehab@samsung.com</email></address></affiliation>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030096<contrib>Initial version.</contrib>
97</author>
98</authorgroup>
99<copyright>
Hans Verkuil1b962082014-01-07 06:46:37 -0300100 <year>2009-2014</year>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300101 <holder>Mauro Carvalho Chehab</holder>
102</copyright>
103
104<revhistory>
105<!-- Put document revisions here, newest first. -->
106<revision>
107<revnumber>1.0.0</revnumber>
108<date>2009-09-06</date>
109<authorinitials>mcc</authorinitials>
110<revremark>Initial revision</revremark>
111</revision>
112</revhistory>
113</partinfo>
114
Mauro Carvalho Chehabfab81252010-07-04 12:23:19 -0300115<title>Remote Controller API</title>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300116<chapter id="remote_controllers">
117&sub-remote_controllers;
118</chapter>
119</part>
Laurent Pinchart176fb0d2009-12-09 08:39:58 -0300120<part id="media_common">
121&sub-media-controller;
122</part>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300123
Mauro Carvalho Chehab6d172492011-07-05 10:07:37 -0300124<chapter id="gen_errors">
125&sub-gen-errors;
126</chapter>
127
128
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300129&sub-fdl-appendix;
130
131</book>