forked from PAWPAW-Mirror/lib_xua
SPDIF Tx doc updates
This commit is contained in:
Binary file not shown.
@@ -65,12 +65,13 @@ S/PDIF Transmit
|
|||||||
``lib_xua`` supports the development of devices with S/PDIF transmit functionality through the use of
|
``lib_xua`` supports the development of devices with S/PDIF transmit functionality through the use of
|
||||||
``lib_spdif``. The XMOS S/PDIF transmitter runs in a single core and supports rates up to 192kHz.
|
``lib_spdif``. The XMOS S/PDIF transmitter runs in a single core and supports rates up to 192kHz.
|
||||||
|
|
||||||
The S/PDIF transmitter core takes PCM audio samples via a channel and outputs them
|
The S/PDIF transmitter core takes PCM audio samples via a channel and outputs them in S/PDIF format to a port.
|
||||||
in S/PDIF format to a port. The channel should be declared a normal::
|
Samples are provided to the S/PDIF transmitter task from the ``XUA_AudioHub()`` task.
|
||||||
|
|
||||||
|
The channel should be declared a normal::
|
||||||
|
|
||||||
chan c_spdif_tx
|
chan c_spdif_tx
|
||||||
|
|
||||||
Samples are provided to the S/PDIF transmitter task from the ``XUA_AudioHub()`` task.
|
|
||||||
|
|
||||||
In order to use the S/PDIF transmmiter with ``lib_xua`` hardware resources must be declared e.g::
|
In order to use the S/PDIF transmmiter with ``lib_xua`` hardware resources must be declared e.g::
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ This port should be clocked from the master-clock, ``lib_spdif`` provides a help
|
|||||||
spdif_tx_port_config(p_spdif_tx2, clk_audio_mclk, p_mclk_in, delay);
|
spdif_tx_port_config(p_spdif_tx2, clk_audio_mclk, p_mclk_in, delay);
|
||||||
|
|
||||||
.. note:: If sharing the master-clock port and clockblock with ``XUA_AudioHub()`` (or any other task) then this setup
|
.. note:: If sharing the master-clock port and clockblock with ``XUA_AudioHub()`` (or any other task) then this setup
|
||||||
should be done before running the tasks in a par{}
|
should be done before running the tasks in a ``par`` statement.
|
||||||
|
|
||||||
Finally the S/PDIF transmitter task must be run - passing in the port and channel for communication with ``XUA_AudioHub``.
|
Finally the S/PDIF transmitter task must be run - passing in the port and channel for communication with ``XUA_AudioHub``.
|
||||||
For example::
|
For example::
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ This section will now examine the operation of these components in further detai
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
|
|
||||||
sw_audio
|
sw_audio
|
||||||
|
sw_spdif
|
||||||
|
|
||||||
|
|
||||||
..
|
..
|
||||||
@@ -16,7 +17,6 @@ This section will now examine the operation of these components in further detai
|
|||||||
sw_ep0
|
sw_ep0
|
||||||
sw_audio
|
sw_audio
|
||||||
sw_mixer
|
sw_mixer
|
||||||
sw_spdif
|
|
||||||
sw_spdif_rx
|
sw_spdif_rx
|
||||||
sw_adat
|
sw_adat
|
||||||
sw_clocking
|
sw_clocking
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
S/PDIF Transmit
|
S/PDIF Transmit
|
||||||
---------------
|
...............
|
||||||
|
|
||||||
XMOS devices can support S/PDIF transmit up to 192kHz. The XMOS S/SPDIF transmitter component runs
|
``lib_xua`` supports the development of devices with S/PDIF transmit throught the use of ``lib_spdif``.
|
||||||
in a single core and can be found in ``sc_spdif/module_spdif_tx``
|
The XMOS S/SPDIF transmitter component runs in a single core and supports sample-rates upto 192kHz.
|
||||||
|
|
||||||
The S/PDIF transmitter core takes PCM audio samples via a channel and outputs them
|
The S/PDIF transmitter core takes PCM audio samples via a channel and outputs them
|
||||||
in S/PDIF format to a port. A lookup table is used to encode the audio data into the required format.
|
in S/PDIF format to a port. A lookup table is used to encode the audio data into the required format.
|
||||||
@@ -24,8 +24,8 @@ clock generation (e.g. when clock source is already locked to desired audio cloc
|
|||||||
- 44.1, 48, 88.2, 96, 176.4, 192 kHz
|
- 44.1, 48, 88.2, 96, 176.4, 192 kHz
|
||||||
* - **Master clock ratios**
|
* - **Master clock ratios**
|
||||||
- 128x, 256x, 512x
|
- 128x, 256x, 512x
|
||||||
* - **Module**
|
* - **Library**
|
||||||
- ``module_spdif_tx``
|
- ``lib_spdif``
|
||||||
|
|
||||||
Clocking
|
Clocking
|
||||||
++++++++
|
++++++++
|
||||||
@@ -60,6 +60,8 @@ The following protocol is used on the channel:
|
|||||||
|
|
||||||
.. list-table:: S/PDIF Component Protocol
|
.. list-table:: S/PDIF Component Protocol
|
||||||
|
|
||||||
|
* - ``outct``
|
||||||
|
- New sample rate command
|
||||||
* - ``outuint``
|
* - ``outuint``
|
||||||
- Sample frequency (Hz)
|
- Sample frequency (Hz)
|
||||||
* - ``outuint``
|
* - ``outuint``
|
||||||
@@ -76,8 +78,6 @@ The following protocol is used on the channel:
|
|||||||
-
|
-
|
||||||
* - ``...``
|
* - ``...``
|
||||||
-
|
-
|
||||||
* - ``outct``
|
|
||||||
- Terminate
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -138,11 +138,3 @@ indicates sampling frequency as shown in :ref:`usb_audio_spdif_sample_bits`.
|
|||||||
* - 192
|
* - 192
|
||||||
- E
|
- E
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user