[media] DocBook: fix various validation errors

Fixed the following errors (with exception of the SVG errors):
  GEN     /home/hans/work/src/v4l/media-git/Documentation/DocBook//v4l2.xml
  rm -rf Documentation/DocBook/index.html; echo '<h1>Linux Kernel HTML Documentation</h1>' >> Documentation/DocBook/index.html && echo '<h2>Kernel Version: 3.8.0-rc1</h2>' >> Documentation/DocBook/index.html && cat Documentation/DocBook/media_api.html >> Documentation/DocBook/index.html
  /tmp/x.xml:883: element revremark: validity error : Element structname is not declared in revremark list of possible children
  /tmp/x.xml:883: element revremark: validity error : Element xref is not declared in revremark list of possible children
  /tmp/x.xml:9580: element xref: validity error : Element xref was declared EMPTY this one has content
  /tmp/x.xml:13508: element link: validity error : Element link does not carry attribute linkend
  /tmp/x.xml:13508: element link: validity error : No declaration for attribute linked of element link
  /tmp/x.xml:16986: element imagedata: validity error : Value "SVG" for attribute format of imagedata is not among the enumerated set
  /tmp/x.xml:17003: element imagedata: validity error : Value "SVG" for attribute format of imagedata is not among the enumerated set
  /tmp/x.xml:17022: element imagedata: validity error : Value "SVG" for attribute format of imagedata is not among the enumerated set

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Hans Verkuil 2013-01-11 08:18:55 -03:00 committed by Mauro Carvalho Chehab
parent cf1364b17e
commit 07b64b837d
5 changed files with 18 additions and 24 deletions

View file

@ -609,7 +609,7 @@ to zero and the <constant>VIDIOC_G_STD</constant>,
<para>Applications can make use of the <xref linkend="input-capabilities" /> and <para>Applications can make use of the <xref linkend="input-capabilities" /> and
<xref linkend="output-capabilities"/> flags to determine whether the video standard ioctls <xref linkend="output-capabilities"/> flags to determine whether the video standard ioctls
are available for the device.</para> are available for the device.</para>
&ENOTTY;.
<para>See <xref linkend="buffer" /> for a rationale. Probably <para>See <xref linkend="buffer" /> for a rationale. Probably
even USB cameras follow some well known video standard. It might have even USB cameras follow some well known video standard. It might have
been better to explicitly indicate elsewhere if a device cannot live been better to explicitly indicate elsewhere if a device cannot live

View file

@ -477,7 +477,7 @@ rest should be evident.</para>
<note> <note>
<title>Experimental</title> <title>Experimental</title>
<para>This is an <link linkend="experimental"> experimental </link> <para>This is an <link linkend="experimental">experimental</link>
interface and may change in the future.</para> interface and may change in the future.</para>
</note> </note>
@ -488,7 +488,7 @@ DMA buffer from userspace using a file descriptor previously exported for a
different or the same device (known as the importer role), or both. This different or the same device (known as the importer role), or both. This
section describes the DMABUF importer role API in V4L2.</para> section describes the DMABUF importer role API in V4L2.</para>
<para>Refer to <link linked="vidioc-expbuf"> DMABUF exporting </link> for <para>Refer to <link linkend="vidioc-expbuf">DMABUF exporting</link> for
details about exporting V4L2 buffers as DMABUF file descriptors.</para> details about exporting V4L2 buffers as DMABUF file descriptors.</para>
<para>Input and output devices support the streaming I/O method when the <para>Input and output devices support the streaming I/O method when the

View file

@ -29,6 +29,6 @@
formats with 10 bits per color compressed to 8 bits each, formats with 10 bits per color compressed to 8 bits each,
using the A-LAW algorithm. Each color component consumes 8 using the A-LAW algorithm. Each color component consumes 8
bits of memory. In other respects this format is similar to bits of memory. In other respects this format is similar to
<xref linkend="V4L2-PIX-FMT-SRGGB8">.</xref></para> <xref linkend="V4L2-PIX-FMT-SRGGB8"></xref>.</para>
</refsect1> </refsect1>
</refentry> </refentry>

View file

@ -143,9 +143,7 @@ applications. -->
<revnumber>3.9</revnumber> <revnumber>3.9</revnumber>
<date>2012-12-03</date> <date>2012-12-03</date>
<authorinitials>sa, sn</authorinitials> <authorinitials>sa, sn</authorinitials>
<revremark>Added timestamp types to <revremark>Added timestamp types to v4l2_buffer.
<structname>v4l2_buffer</structname>, see <xref
linkend="buffer-flags" />.
Added <constant>V4L2_EVENT_CTRL_CH_RANGE</constant> control Added <constant>V4L2_EVENT_CTRL_CH_RANGE</constant> control
event changes flag, see <xref linkend="changes-flags"/>. event changes flag, see <xref linkend="changes-flags"/>.
</revremark> </revremark>

View file

@ -83,15 +83,14 @@ descriptor. The application may pass it to other DMABUF-aware devices. Refer to
<link linkend="dmabuf">DMABUF importing</link> for details about importing <link linkend="dmabuf">DMABUF importing</link> for details about importing
DMABUF files into V4L2 nodes. It is recommended to close a DMABUF file when it DMABUF files into V4L2 nodes. It is recommended to close a DMABUF file when it
is no longer used to allow the associated memory to be reclaimed. </para> is no longer used to allow the associated memory to be reclaimed. </para>
</refsect1> </refsect1>
<refsect1>
<section>
<title>Examples</title>
<example> <refsect1>
<title>Exporting a buffer.</title> <title>Examples</title>
<programlisting>
<example>
<title>Exporting a buffer.</title>
<programlisting>
int buffer_export(int v4lfd, &v4l2-buf-type; bt, int index, int *dmafd) int buffer_export(int v4lfd, &v4l2-buf-type; bt, int index, int *dmafd)
{ {
&v4l2-exportbuffer; expbuf; &v4l2-exportbuffer; expbuf;
@ -108,12 +107,12 @@ int buffer_export(int v4lfd, &v4l2-buf-type; bt, int index, int *dmafd)
return 0; return 0;
} }
</programlisting> </programlisting>
</example> </example>
<example> <example>
<title>Exporting a buffer using the multi-planar API.</title> <title>Exporting a buffer using the multi-planar API.</title>
<programlisting> <programlisting>
int buffer_export_mp(int v4lfd, &v4l2-buf-type; bt, int index, int buffer_export_mp(int v4lfd, &v4l2-buf-type; bt, int index,
int dmafd[], int n_planes) int dmafd[], int n_planes)
{ {
@ -137,12 +136,9 @@ int buffer_export_mp(int v4lfd, &v4l2-buf-type; bt, int index,
return 0; return 0;
} }
</programlisting> </programlisting>
</example> </example>
</section>
</refsect1>
<refsect1>
<table pgwide="1" frame="none" id="v4l2-exportbuffer"> <table pgwide="1" frame="none" id="v4l2-exportbuffer">
<title>struct <structname>v4l2_exportbuffer</structname></title> <title>struct <structname>v4l2_exportbuffer</structname></title>
<tgroup cols="3"> <tgroup cols="3">