Stereo PCM To One DSP
source S/PDIF PCM
→ digital receiver
→ I2S stereo
→ ADAU1701
→ four DAC outputs
Best when two decoded source channels are enough and the DSP handles crossovers, routing, delay, EQ, and dynamics.
| Layer | Examples | Failure when confused |
|---|---|---|
| Content | music, movie, 2.0, 5.1, 7.1 | wrong downmix or missing channels |
| Encoding | PCM, AC-3, DTS, other encoded payload | compressed data sent to PCM-only DSP |
| Transport | S/PDIF, HDMI, USB Audio, I2S, TDM | receiver or bandwidth mismatch |
| Physical layer | coax, optical, PCB traces, twisted pair | logic, signal-integrity, or connector failure |
| Control | I2C, SPI, GPIO, USB programming | control port mistaken for an audio path |
| Conversion | ADC, DAC, receiver PLL, ASRC, decoder | clock, level, or format boundary overlooked |
source S/PDIF PCM
→ digital receiver
→ I2S stereo
→ ADAU1701
→ four DAC outputs
Best when two decoded source channels are enough and the DSP handles crossovers, routing, delay, EQ, and dynamics.
source S/PDIF bitstream
→ receiver / detector
→ surround decoder
→ 6-channel PCM
→ TDM or I2S lanes
→ DSPs / DACs
The receiver recovers the stream; the decoder creates the individual PCM channels.
HDMI source
→ HDMI audio receiver
→ multiple I2S streams or TDM
→ DSP channel map
→ DACs / amplifiers
Useful when uncompressed multichannel PCM is available, but extraction, clocking, channel order, and content protection must be solved by the chosen hardware.
Record the source device, application, content format, output connector, and selected output mode. A menu that says “5.1” does not prove that six decoded PCM channels leave the connector.
A digital-interface receiver recovers the S/PDIF data, channel status, and clocks. A stream detector distinguishes PCM from supported non-PCM formats. A compatible decoder converts the encoded surround program into separate PCM channels.
Its serial input expects decoded PCM in an I2S, justified, or TDM format supported by the hardware configuration.
For every interface, record:
Identify who supplies MCLK, BCLK, and frame clock at every serial link. Use one controller per clock net. If the source and DSP use independent clock domains, choose a receiver PLL, buffer, or ASRC architecture and document its limits.
shared-clock path:
source clock controller → receiver / DSP / DAC targets
independent-clock path:
source clock → receiver → ASRC → local DSP clock → DAC
BCLK = sample rate × slots per frame × bits per slot
At 48 kHz, stereo with 32-bit slots needs 3.072 MHz BCLK. TDM8 with 32-bit slots needs 12.288 MHz. Confirm the timing limit of every connected device before selecting rate and slots.
The ADAU1701 has two onboard ADC channels, four onboard DAC channels, and a serial input/output system capable of I2S-compatible, justified, and TDM operation. SigmaStudio exposes the analog ADCs separately from the serial input channels.
For the enclosed Wondom two-input/four-output unit, the normal RCA connectors remain analog. The programming or ICP connection is a control path. Multichannel serial-audio expansion requires actual access to the serial data and clock pins or purpose-built interface hardware.
Four onboard DACs limit one ADAU1701 to four direct analog outputs. Additional channels can be created through:
Controlling multiple DSPs over I2C or SPI is separate from transporting audio between them. Both addressing and audio clocks must be designed.
Use the rate required by the source, converter bandwidth, processing, latency, and bus architecture. Higher rates increase serial bandwidth and usually reduce the instructions available per sample. On the ADAU1701, double- and quadruple-rate modes trade processing budget for the higher rate.
Use synchronous SRC for a known rate relationship or ASRC to join independent clock domains. Record passband, stop-band, word length, latency, lock, and mute behavior. Do not pass an encoded surround payload through a PCM SRC unless the hardware explicitly supports that payload path.
Track source bits, serial slots, DSP arithmetic, and output words separately. Use rounding, saturation, and dither intentionally when reducing precision. A 32-bit slot does not create 32 meaningful bits, and floating-point processing does not remove ADC, DAC, or analog limits.
Total latency includes receiver, decoder, buffering, SRC, DSP blocks, FIR filters, converters, and amplifier or network stages. Measure the complete path and keep all channels in the intended timing relationship.
Use one-channel identification signals to verify left, right, center, LFE, surround-left, and surround-right assignments before applying crossovers or summing.
| Source output | Required front end | DSP-side result |
|---|---|---|
| S/PDIF stereo PCM | digital receiver, optional SRC | two PCM channels on I2S or TDM |
| S/PDIF encoded 5.1 | receiver, detector, compatible decoder | six decoded PCM channels |
| HDMI multichannel PCM | HDMI audio receiver or extractor | multiple I2S lanes or TDM slots |
| analog 5.1 outputs | six ADC channels or multiple DSP analog inputs | decoded channels with another conversion stage |
| Symptom | Check first |
|---|---|
| only stereo appears | source PCM/downmix setting, decoder presence, payload detection |
| noise instead of audio | encoded payload in PCM path, word alignment, data edge, channel status |
| pitch or tempo wrong | sample-rate and clock-mode mismatch |
| channels swapped | decoder order, I2S lane or TDM slot map, DSP routing |
| clicks or periodic dropouts | clock domains, BCLK integrity, FIFO drift, receiver lock |
| DSP programs but receives no digital audio | control bus confused with audio bus, serial pins not exposed or configured |
Not usually. It commonly means a supported compressed surround payload that still needs a compatible decoder.
It is a control and programming path. Normal multichannel audio uses the serial-audio pins and clocks.
With eight 32-bit slots, BCLK equals 48,000 × 8 × 32.
The receiver recovers and frames the transport; the decoder converts an encoded payload into individual PCM channels.
The complete 12-question data set is stored with this lesson as quiz.json for future interactive use.