Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 1 | <?xml version="1.0"?> |
Andrzej Hajda | 8bfd4a6 | 2013-06-28 05:34:20 -0300 | [diff] [blame] | 2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
| 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ |
Mauro Carvalho Chehab | d80bd70 | 2009-09-15 15:27:57 -0300 | [diff] [blame] | 4 | <!ENTITY % media-entities SYSTEM "./media-entities.tmpl"> %media-entities; |
| 5 | <!ENTITY media-indices SYSTEM "./media-indices.tmpl"> |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 6 | |
| 7 | <!ENTITY eg "e. g."> |
| 8 | <!ENTITY ie "i. 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 Chehab | 6d17249 | 2011-07-05 10:07:37 -0300 | [diff] [blame] | 11 | <!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 Chehab | 3de530f | 2011-07-05 12:36:01 -0300 | [diff] [blame] | 12 | <!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 Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 13 | <!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 Pinchart | f57fa21 | 2013-06-05 04:19:53 -0300 | [diff] [blame] | 25 | <!ENTITY dash-ent-8 "<entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry><entry>-</entry>"> |
Sylwester Nawrocki | b01189b | 2012-11-28 14:40:32 -0300 | [diff] [blame] | 26 | <!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 Pinchart | f57fa21 | 2013-06-05 04:19:53 -0300 | [diff] [blame] | 27 | <!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 Edworthy | 7b88fc0 | 2013-03-18 08:47:59 -0300 | [diff] [blame] | 29 | <!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 Pinchart | f57fa21 | 2013-06-05 04:19:53 -0300 | [diff] [blame] | 30 | <!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 Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 33 | ]> |
| 34 | |
| 35 | <book id="media_api"> |
| 36 | <bookinfo> |
Mauro Carvalho Chehab | 90f745c | 2014-02-06 10:55:28 -0200 | [diff] [blame] | 37 | <title>LINUX MEDIA INFRASTRUCTURE API</title> |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 38 | |
Mauro Carvalho Chehab | 90f745c | 2014-02-06 10:55:28 -0200 | [diff] [blame] | 39 | <copyright> |
| 40 | <year>2009-2014</year> |
| 41 | <holder>LinuxTV Developers</holder> |
| 42 | </copyright> |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 43 | |
Mauro Carvalho Chehab | 90f745c | 2014-02-06 10:55:28 -0200 | [diff] [blame] | 44 | <legalnotice> |
| 45 | <para>Permission is granted to copy, distribute and/or modify |
| 46 | this document under the terms of the GNU Free Documentation License, |
| 47 | Version 1.1 or any later version published by the Free Software |
| 48 | Foundation. A copy of the license is included in the chapter entitled |
| 49 | "GNU Free Documentation License"</para> |
| 50 | </legalnotice> |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 51 | </bookinfo> |
| 52 | |
| 53 | <toc></toc> <!-- autogenerated --> |
| 54 | |
| 55 | <preface> |
| 56 | <title>Introduction</title> |
| 57 | |
| 58 | <para>This document covers the Linux Kernel to Userspace API's used by |
Hans Verkuil | 1b96208 | 2014-01-07 06:46:37 -0300 | [diff] [blame] | 59 | video and radio streaming devices, including video cameras, |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 60 | analog and digital TV receiver cards, AM/FM receiver cards, |
Hans Verkuil | 1b96208 | 2014-01-07 06:46:37 -0300 | [diff] [blame] | 61 | streaming capture and output devices, codec devices and remote |
| 62 | controllers.</para> |
Hans Verkuil | 571d19c | 2012-08-09 06:04:43 -0300 | [diff] [blame] | 63 | <para>It is divided into four parts.</para> |
Hans Verkuil | 1b96208 | 2014-01-07 06:46:37 -0300 | [diff] [blame] | 64 | <para>The first part covers radio, video capture and output, |
| 65 | cameras, analog TV devices and codecs.</para> |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 66 | <para>The second part covers the |
| 67 | API used for digital TV and Internet reception via one of the |
| 68 | several digital tv standards. While it is called as DVB API, |
| 69 | in fact it covers several different video standards including |
| 70 | DVB-T, DVB-S, DVB-C and ATSC. The API is currently being updated |
Masanari Iida | 0ba4f6e | 2014-07-12 09:55:28 -0700 | [diff] [blame] | 71 | to document support also for DVB-S2, ISDB-T and ISDB-S.</para> |
Hans Verkuil | 571d19c | 2012-08-09 06:04:43 -0300 | [diff] [blame] | 72 | <para>The third part covers the Remote Controller API.</para> |
| 73 | <para>The fourth part covers the Media Controller API.</para> |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 74 | <para>For additional information and for the latest development code, |
| 75 | see: <ulink url="http://linuxtv.org">http://linuxtv.org</ulink>.</para> |
| 76 | <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> |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 77 | </preface> |
| 78 | |
Mauro Carvalho Chehab | 90f745c | 2014-02-06 10:55:28 -0200 | [diff] [blame] | 79 | <part id="v4l2spec">&sub-v4l2;</part> |
| 80 | <part id="dvbapi">&sub-dvbapi;</part> |
| 81 | <part id="remotes">&sub-remote_controllers;</part> |
| 82 | <part id="media_common">&sub-media-controller;</part> |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 83 | |
Mauro Carvalho Chehab | 90f745c | 2014-02-06 10:55:28 -0200 | [diff] [blame] | 84 | <chapter id="gen_errors">&sub-gen-errors;</chapter> |
Mauro Carvalho Chehab | 6d17249 | 2011-07-05 10:07:37 -0300 | [diff] [blame] | 85 | |
Mauro Carvalho Chehab | 8e080c2 | 2009-09-13 22:16:04 -0300 | [diff] [blame] | 86 | &sub-fdl-appendix; |
| 87 | |
| 88 | </book> |