Skip to content

Commit

Permalink
media: docs: make DVB documents more compatible with Sphinx 3.1+
Browse files Browse the repository at this point in the history
Sphinx 3.x broke support for the cdomain.py extension, as the
c domain code was rewritten. Due to that, the c tags need to
be re-written, in order to use the new c domain notation.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mchehab committed Oct 15, 2020
1 parent 407e84c commit f9b2e8a
Show file tree
Hide file tree
Showing 95 changed files with 329 additions and 534 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _AUDIO_BILINGUAL_CHANNEL_SELECT:

Expand All @@ -16,9 +17,9 @@ AUDIO_BILINGUAL_CHANNEL_SELECT
Synopsis
--------

.. c:function:: int ioctl(int fd, AUDIO_BILINGUAL_CHANNEL_SELECT, struct *audio_channel_select)
:name: AUDIO_BILINGUAL_CHANNEL_SELECT
.. c:macro:: AUDIO_BILINGUAL_CHANNEL_SELECT
``int ioctl(int fd, AUDIO_BILINGUAL_CHANNEL_SELECT, struct audio_channel_select *select)``

Arguments
---------
Expand All @@ -39,7 +40,6 @@ Arguments

- Select the output format of the audio (mono left/right, stereo).

Description
-----------

Expand All @@ -50,7 +50,6 @@ for MPEG decoders controlled through V4L2.
This ioctl call asks the Audio Device to select the requested channel
for bilingual streams if possible.

Return Value
------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _AUDIO_CHANNEL_SELECT:

Expand All @@ -16,9 +17,9 @@ AUDIO_CHANNEL_SELECT
Synopsis
--------

.. c:function:: int ioctl(int fd, AUDIO_CHANNEL_SELECT, struct *audio_channel_select)
:name: AUDIO_CHANNEL_SELECT
.. c:macro:: AUDIO_CHANNEL_SELECT
``int ioctl(int fd, AUDIO_CHANNEL_SELECT, struct audio_channel_select *select)``

Arguments
---------
Expand All @@ -27,7 +28,6 @@ Arguments
:header-rows: 0
:stub-columns: 0

-

- int fd
Expand All @@ -40,7 +40,6 @@ Arguments

- Select the output format of the audio (mono left/right, stereo).

Description
-----------

Expand All @@ -50,7 +49,6 @@ V4L2 ``V4L2_CID_MPEG_AUDIO_DEC_PLAYBACK`` control instead.
This ioctl call asks the Audio Device to select the requested channel if
possible.

Return Value
------------

Expand Down
8 changes: 4 additions & 4 deletions Documentation/userspace-api/media/dvb/audio-clear-buffer.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _AUDIO_CLEAR_BUFFER:

Expand All @@ -16,8 +17,9 @@ AUDIO_CLEAR_BUFFER
Synopsis
--------

.. c:function:: int ioctl(int fd, AUDIO_CLEAR_BUFFER)
:name: AUDIO_CLEAR_BUFFER
.. c:macro:: AUDIO_CLEAR_BUFFER
``int ioctl(int fd, AUDIO_CLEAR_BUFFER)``

Arguments
---------
Expand All @@ -26,7 +28,6 @@ Arguments
:header-rows: 0
:stub-columns: 0

- .. row 1

- int fd
Expand All @@ -39,7 +40,6 @@ Description
This ioctl call asks the Audio Device to clear all software and hardware
buffers of the audio decoder device.

Return Value
------------

Expand Down
7 changes: 3 additions & 4 deletions Documentation/userspace-api/media/dvb/audio-continue.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _AUDIO_CONTINUE:

Expand All @@ -16,9 +17,9 @@ AUDIO_CONTINUE
Synopsis
--------

.. c:function:: int ioctl(int fd, AUDIO_CONTINUE)
:name: AUDIO_CONTINUE
.. c:macro:: AUDIO_CONTINUE
``int ioctl(int fd, AUDIO_CONTINUE)``

Arguments
---------
Expand All @@ -27,7 +28,6 @@ Arguments
:header-rows: 0
:stub-columns: 0

- .. row 1

- int fd
Expand All @@ -40,7 +40,6 @@ Description
This ioctl restarts the decoding and playing process previously paused
with AUDIO_PAUSE command.

Return Value
------------

Expand Down
7 changes: 1 addition & 6 deletions Documentation/userspace-api/media/dvb/audio-fclose.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _audio_fclose:

Expand All @@ -17,8 +18,6 @@ Synopsis
--------

.. c:function:: int close(int fd)
:name: dvb-audio-close
Arguments
---------
Expand All @@ -27,28 +26,24 @@ Arguments
:header-rows: 0
:stub-columns: 0
- .. row 1
- int fd
- File descriptor returned by a previous call to open().
Description
-----------
This system call closes a previously opened audio device.
Return Value
------------
.. flat-table::
:header-rows: 0
:stub-columns: 0
- .. row 1
- ``EBADF``
Expand Down
7 changes: 1 addition & 6 deletions Documentation/userspace-api/media/dvb/audio-fopen.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _audio_fopen:

Expand All @@ -17,8 +18,6 @@ Synopsis
--------

.. c:function:: int open(const char *deviceName, int flags)
:name: dvb-audio-open
Arguments
---------
Expand All @@ -27,7 +26,6 @@ Arguments
:header-rows: 0
:stub-columns: 0
- .. row 1
- const char \*deviceName
Expand Down Expand Up @@ -60,7 +58,6 @@ Arguments
-
- (blocking mode is the default)
Description
-----------
Expand All @@ -78,7 +75,6 @@ fail, and an error code will be returned. If the Audio Device is opened
in O_RDONLY mode, the only ioctl call that can be used is
AUDIO_GET_STATUS. All other call will return with an error code.
Return Value
------------
Expand All @@ -88,7 +84,6 @@ Return Value
:header-rows: 0
:stub-columns: 0


- .. row 1

- ``ENODEV``
Expand Down
7 changes: 1 addition & 6 deletions Documentation/userspace-api/media/dvb/audio-fwrite.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _audio_fwrite:

Expand All @@ -17,8 +18,6 @@ Synopsis
--------

.. c:function:: size_t write(int fd, const void *buf, size_t count)
:name: dvb-audio-write
Arguments
---------
Expand All @@ -27,7 +26,6 @@ Arguments
:header-rows: 0
:stub-columns: 0
- .. row 1
- int fd
Expand All @@ -46,7 +44,6 @@ Arguments
- Size of buf.
Description
-----------
Expand All @@ -56,15 +53,13 @@ PES format. If O_NONBLOCK is not specified the function will block
until buffer space is available. The amount of data to be transferred is
implied by count.
Return Value
------------
.. flat-table::
:header-rows: 0
:stub-columns: 0
- .. row 1
- ``EPERM``
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _AUDIO_GET_CAPABILITIES:

Expand All @@ -16,9 +17,9 @@ AUDIO_GET_CAPABILITIES
Synopsis
--------

.. c:function:: int ioctl(int fd, AUDIO_GET_CAPABILITIES, unsigned int *cap)
:name: AUDIO_GET_CAPABILITIES
.. c:macro:: AUDIO_GET_CAPABILITIES
``int ioctl(int fd, AUDIO_GET_CAPABILITIES, unsigned int *cap)``

Arguments
---------
Expand All @@ -27,7 +28,6 @@ Arguments
:header-rows: 0
:stub-columns: 0

-

- int fd
Expand All @@ -40,14 +40,12 @@ Arguments

- Returns a bit array of supported sound formats.

Description
-----------

This ioctl call asks the Audio Device to tell us about the decoding
capabilities of the audio hardware.

Return Value
------------

Expand Down
8 changes: 3 additions & 5 deletions Documentation/userspace-api/media/dvb/audio-get-status.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: DTV.audio
.. _AUDIO_GET_STATUS:

Expand All @@ -16,9 +17,9 @@ AUDIO_GET_STATUS
Synopsis
--------

.. c:function:: int ioctl(int fd, AUDIO_GET_STATUS, struct audio_status *status)
:name: AUDIO_GET_STATUS
.. c:macro:: AUDIO_GET_STATUS
``int ioctl(int fd, AUDIO_GET_STATUS, struct audio_status *status)``

Arguments
---------
Expand All @@ -27,7 +28,6 @@ Arguments
:header-rows: 0
:stub-columns: 0

-

- int fd
Expand All @@ -40,14 +40,12 @@ Arguments

- Returns the current state of Audio Device.

Description
-----------

This ioctl call asks the Audio Device to return the current state of the
Audio Device.

Return Value
------------

Expand Down
Loading

0 comments on commit f9b2e8a

Please sign in to comment.