[PATCH RFCv3 11/17] [media] DocBook/audio.xml: Remove generic errors

Mauro Carvalho Chehab
2011-07-06T18:08:52Z

Remove generic errors from ioctl() descriptions. For other ioctl's,
there's no generic section. So, just keep whatever is there.
Also remove the EINTERNAL error code, as no DVB driver returns
it, and this error code is not defined on POSIX or on Linux.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

diff --git a/Documentation/DocBook/media/dvb/audio.xml b/Documentation/DocBook/media/dvb/audio.xml
index 90e9b7f..d643862 100644
--- a/Documentation/DocBook/media/dvb/audio.xml
+++ b/Documentation/DocBook/media/dvb/audio.xml
@@ -230,13 +230,6 @@ and right.
</entry>
</row><row><entry
align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
EBUSY
</entry><entry
align="char">
@@ -392,21 +385,6 @@ role="subsection"> AUDIO_STOP
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_PLAY"
role="subsection"> AUDIO_PLAY
@@ -443,21 +421,6 @@ role="subsection"> AUDIO_PLAY
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_PAUSE"
role="subsection"> AUDIO_PAUSE
@@ -502,22 +465,6 @@ role="subsection"> AUDIO_PAUSE
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row> </tgroup></informaltable>
-

<section id="AUDIO_CONTINUE"
role="subsection"> AUDIO_CONTINUE
@@ -558,21 +505,6 @@ with AUDIO_PAUSE command.
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_SELECT_SOURCE"
role="subsection"> AUDIO_SELECT_SOURCE
@@ -621,28 +553,6 @@ role="subsection"> AUDIO_SELECT_SOURCE
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EINVAL
-</entry><entry
- align="char">
- Illegal input parameter.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_SET_MUTE"
role="subsection"> AUDIO_SET_MUTE
@@ -699,28 +609,6 @@ role="subsection"> AUDIO_SET_MUTE
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EINVAL
-</entry><entry
- align="char">
- Illegal input parameter.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_SET_AV_SYNC"
role="subsection"> AUDIO_SET_AV_SYNC
@@ -777,28 +665,6 @@ role="subsection"> AUDIO_SET_AV_SYNC
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EINVAL
-</entry><entry
- align="char">
- Illegal input parameter.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_SET_BYPASS_MODE"
role="subsection"> AUDIO_SET_BYPASS_MODE
@@ -859,28 +725,6 @@ role="subsection"> AUDIO_SET_BYPASS_MODE
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EINVAL
-</entry><entry
- align="char">
- Illegal input parameter.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_CHANNEL_SELECT"
role="subsection"> AUDIO_CHANNEL_SELECT
@@ -927,28 +771,6 @@ role="subsection"> AUDIO_CHANNEL_SELECT
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EINVAL
-</entry><entry
- align="char">
- Illegal input parameter ch.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_GET_STATUS"
role="subsection"> AUDIO_GET_STATUS
@@ -994,28 +816,6 @@ role="subsection"> AUDIO_GET_STATUS
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EFAULT
-</entry><entry
- align="char">
- status points to invalid address.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_GET_CAPABILITIES"
role="subsection"> AUDIO_GET_CAPABILITIES
@@ -1061,28 +861,6 @@ role="subsection"> AUDIO_GET_CAPABILITIES
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EFAULT
-</entry><entry
- align="char">
- cap points to an invalid address.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_CLEAR_BUFFER"
role="subsection"> AUDIO_CLEAR_BUFFER
@@ -1119,21 +897,6 @@ role="subsection"> AUDIO_CLEAR_BUFFER
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_SET_ID"
role="subsection"> AUDIO_SET_ID
@@ -1182,28 +945,6 @@ role="subsection"> AUDIO_SET_ID
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EINVAL
-</entry><entry
- align="char">
- Invalid sub-stream id.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_SET_MIXER"
role="subsection"> AUDIO_SET_MIXER
@@ -1247,28 +988,6 @@ role="subsection"> AUDIO_SET_MIXER
</entry>
</row> </tgroup></informaltable>
&return-value-dvb;
-<informaltable><tgroup cols="2"> <row><entry
- align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor.
-</entry>
- </row><row><entry
- align="char">
- EINTERNAL
-</entry><entry
- align="char">
- Internal error.
-</entry>
- </row><row><entry
- align="char">
- EFAULT
-</entry><entry
- align="char">
- mix points to an invalid address.
-</entry>
- </row> </tgroup></informaltable>

<section id="AUDIO_SET_STREAMTYPE"
role="subsection"> AUDIO_SET_STREAMTYPE
@@ -1316,13 +1035,6 @@ role="subsection"> AUDIO_SET_STREAMTYPE
&return-value-dvb;
<informaltable><tgroup cols="2"> <row><entry
align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor
-</entry>
- </row><row><entry
- align="char">
EINVAL
</entry><entry
align="char">
@@ -1375,13 +1087,6 @@ role="subsection"> AUDIO_SET_EXT_ID
&return-value-dvb;
<informaltable><tgroup cols="2"> <row><entry
align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor
-</entry>
- </row><row><entry
- align="char">
EINVAL
</entry><entry
align="char">
@@ -1435,13 +1140,6 @@ role="subsection"> AUDIO_SET_ATTRIBUTES
&return-value-dvb;
<informaltable><tgroup cols="2"> <row><entry
align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor
-</entry>
- </row><row><entry
- align="char">
EINVAL
</entry><entry
align="char">
@@ -1495,13 +1193,6 @@ role="subsection"> AUDIO_SET_KARAOKE
&return-value-dvb;
<informaltable><tgroup cols="2"> <row><entry
align="char">
- EBADF
-</entry><entry
- align="char">
- fd is not a valid open file descriptor
-</entry>
- </row><row><entry
- align="char">
EINVAL
</entry><entry
align="char">
diff --git a/Documentation/DocBook/media/v4l/gen-errors.xml b/Documentation/DocBook/media/v4l/gen-errors.xml
index 2b50b63..9a9575f 100644
--- a/Documentation/DocBook/media/v4l/gen-errors.xml
+++ b/Documentation/DocBook/media/v4l/gen-errors.xml
@@ -35,6 +35,10 @@
descriptor is not for a media device.</entry>
</row>
<row>
+ <entry>ENODEV</entry>
+ <entry>Device not found or was removed.</entry>
+ </row>
+ <row>
<entry>ENOMEM</entry>
<entry>There's not enough memory to handle the desired operation.</entry>
</row>
--
1.7.1