Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# S/PDIF transmit

The codebase supports a single, stereo, S/PDIF transmitter. This can be output over 75 Ω coaxial or optical fibre. In order to provide S/PDIF transmit functionality `lib_xua` uses lib_spdif.

Basic configuration of S/PDIF transmit functionality is achieved with the defines in Table 15.

Table 15 S/PDIF tx defines
Define | Description | Default
--- | --- | ---
`XUA_SPDIF_TX_EN` | Enable S/PDIF transmit | `0` (Disabled)
`SPDIF_TX_INDEX` | Output channel offset to use for S/PDIF transmit | `0`

In addition, the developer may choose which tile the S/PDIF transmitter runs on, see Table 16

Table 16 S/PDIF tile define
Define | Description | Default
--- | --- | ---
`SPDIF_TX_TILE` | Tile that S/PDIF tx is connected to | `AUDIO_IO_TILE`

The codebase expects the S/PDIF transmit port to be defined in the application XN file as `PORT_SPDIF_OUT`. This must be a 1-bit port, for example:

    <Port Location="XS1_PORT_1A"  Name="PORT_SPDIF_OUT"/>