S/PDIF - Wikipedia

Standardized digital audio interface
S/PDIF and TOSLINK connectors on a piece of audio equipment

S/PDIF (Sony/Philips Digital Interface)[1][2] is a type of digital audio interface used in consumer audio equipment to output audio over relatively short distances. The signal is transmitted over either a coaxial cable using RCA or BNC connectors, or a fibre-optic cable using TOSLINK connectors. S/PDIF interconnects components in home theaters and other digital high-fidelity systems.

S/PDIF is based on the AES3 interconnect standard.[3] S/PDIF can carry two channels of uncompressed PCM audio or compressed 5.1 surround sound; it cannot support lossless surround formats that require greater bandwidth.[4]

S/PDIF is a data link layer protocol as well as a set of physical layer specifications for carrying digital audio signals over either optical or electrical cable. The name stands for Sony/Philips Digital Interconnect Format but is also known as Sony/Philips Digital Interface. Sony and Philips were the primary designers of S/PDIF. S/PDIF is standardized in IEC 60958 as IEC 60958 type II (IEC 958 before 1998).[5]

Applications

[edit]

A common use is to carry two channels of uncompressed digital audio from a CD player to an amplifying receiver.

The S/PDIF interface is also used to carry compressed digital audio for surround sound as defined by the IEC 61937 standard. This mode is used to connect the output of a Blu-ray, DVD player or computer, via optical or coax, to a home theatre amplifying receiver that supports Dolby Digital or DTS Digital Surround decoding.

Hardware specifications

[edit]
Digital audio coaxial RCA connector (orange)

S/PDIF was developed at the same time as the main standard, AES3, used to interconnect professional audio equipment in the professional audio field. This resulted from the desire of the various stakeholders to have at least sufficient similarities between the two interfaces to allow the use of the same, or very similar, designs for interfacing ICs.[6] S/PDIF is nearly identical at the protocol level,[a] but uses either coaxial cable (with RCA connectors) or optical fibre (TOSLINK; i.e., JIS F05 or EIAJ optical), both of which cost less than the XLR connection used by AES3. The RCA connectors are typically colour-coded orange to differentiate from other RCA connector uses such as composite video. S/PDIF uses 75 Ω coaxial cable while AES3 uses 110 Ω balanced twisted pair.

Signals transmitted over consumer-grade TOSLINK connections are identical in content to those transmitted over coaxial connectors. Optical provides electrical isolation that can help address ground loop issues in systems. The electrical connection can be more robust and supports longer connections.[7]

Comparison of AES3 and S/PDIF[8]
AES3 S/PDIF
Balanced Unbalanced Copper Optical
Cabling 110 Ω STP 75 Ω coaxial 75 Ω coaxial Optical fibre
Connector 3-pin XLR BNC RCA or BNC TOSLINK
Output level 2–7 V peak to peak 1.0–1.2 V peak to peak 0.5–0.6 V peak to peak
Min. input level 0.2 V 0.32 V 0.2 V
Max. distance 1000 m 100 m 10 m
Modulation Biphase mark code
Subcode information ASCII id. text SCMS copy protection info.
Audio bit depth 24 bits 20 bits (24 bits, optionally)[citation needed]

Protocol specifications

[edit]

S/PDIF is used to transmit digital signals in a number of formats, the most common being the 48 kHz sample rate format (used in Digital Audio Tape and DVDs) and the 44.1 kHz format, used in CD audio. In order to support both sample rates, as well as others that might be needed, the format has no defined bit rate. Instead, the data is sent using biphase mark code, which has either one or two transitions for every bit, allowing the original word clock to be extracted from the signal itself.

S/PDIF protocol differs from AES3 only in the channel status bits; see AES3 § Protocol for the high-level view. Both protocols group 192 samples into an audio block, and transmit one channel status bit per sample, providing one 192-bit channel status word per channel per audio block. For S/PDIF, the 192-bit status word is identical between the two channels and is divided into 12 words of 16 bits each, with the first 16 bits being a control code.

S/PDIF control word components[9]
Byte Bit Unset (0) Set (1)
0 0 Consumer (S/PDIF) Professional (AES3)(changes meaning to AES3 channel status word)
1 Normal PCM Compressed data
2 Copy restrict Copy permit
3 2 channels 4 channels
4
5 No pre-emphasis Pre-emphasis 50/15
6–7 Mode, defines subsequent bytes; values other than zero are undefined.
1 0–6 Audio source category indicating the type of source equipment (general, CD-DA, DVD, etc.)
7 L-bit, original or copy[A]
2 0–3 Source number
4–7 Channel number
3 0–3 Sampling frequency: 00002: 44.1 kHz, 01002: 48 kHz, 11002: 32 kHz
4–5 Clock accuracy: 102: 50ppm,002: 1100ppm, 012: variable pitch (requires compatible receiver)
6–7 Undefined
4 0 Word length 20 bits Word length 24 bits
1–3 Sample length (0: undefined, 1–4: word length minus 1-4 bits, 5: full word length)
4–7 Undefined
5–10 0-7 EAN-13 code (possibly in binary-coded decimal)
11 0-3
4–7 Undefined; padding on 13-digit EAN code
12–13 0-7 Undefined
14 0–3
4-7 ISRC (encoding unclear; ISRC is 2 alphabetic, 3 alphanumeric and 7 numeric, which is 262 × 363 × 107 ≈ 248.164 and so obviously fits into 7.5 bytes, but a naive 5 ASCII + 7 BCD would be 8.5 bytes)
15–21 0–7
22–23 0–7 Undefined
  1. ^ (for most category codes) indicates whether copy-restricted audio is original (may be copied once) or a copy (does not allow recording again). The L-bit is only used if bit 2 is zero, meaning copy-restricted audio. The L-bit polarity depends on the category, with recording allowed if it is 1 for DVD-R and DVD-RW, but 0 for CD-R, CD-RW, and DVD. For plain CD-DA (ordinary nonrecordable CDs), the L-bit is not defined, and recording is prevented by alternating bit 2 at a rate of 4–10 Hz.

Data framing

[edit]

S/PDIF block contains 192 frames, and each frame contains two sub-frames. A sub-frame has either 20- or 24-bit audio data.[10]

S/PDIF is meant to be used for transmitting 20-bit audio data streams plus other related information. S/PDIF can also transport 24-bit samples by way of four extra bits; however, not all equipment supports this, and these extra bits may be ignored.

To transmit sources with less than 20 bits of sample accuracy, the superfluous bits will be set to zero, and the 4:1–3 bits (sample length) are set accordingly.

IEC 61937 encapsulation

[edit]

IEC 61937 defines a way to transmit compressed, multi-channel data over S/PDIF.[11]

  • The control word bit 0:1 is set to indicate the presence of non-linear-PCM data.
  • The sample rate is set to maintain the needed symbol (data) rate. The symbol rate is usually 64 times the sample rate.
  • Data is packed into blocks. Each data block is given a IEC 61937 preamble, containing two 16-bit sync words and indicating the state and identity (type, validity, bitstream number, length) of encapsulated data present. Padding is added to match full block size as required by timing.

A number of encodings are available over IEC 61937, including Dolby AC-3/E-AC-3, Dolby TrueHD, MP3, AAC, ATRAC, DTS, and WMA Pro.[12][13]

Limitations

[edit]

The receiver does not control the data rate, so it must avoid bit slip by synchronizing its reception with the source clock. Many S/PDIF implementations cannot fully decouple the final signal from influence of the source or the interconnect. Specifically, the process of clock recovery used to synchronize reception may produce jitter.[14][15][16] If the DAC does not have a stable clock reference then noise will be introduced into the resulting analog signal. However, receivers can implement various strategies that limit this influence.[16][17]

See also

[edit]
  • ADAT Lightpipe
  • I2S
  • McASP

Notes

[edit]
  1. ^ Consumer S/PDIF supports the Serial Copy Management System, whereas professional interfaces do not.

References

[edit]
  1. ^ "S/PDIF Information". Intel. 21 July 2017. Retrieved 3 April 2018.
  2. ^ "S/PDIF". Retrieved 3 April 2018.
  3. ^ "SoundSystem SixPack 5.1+ True 6 Channel + Digital In & out – Stuff Worth Knowing" (PDF). TerraTec. 5 July 2001. p. 43. Archived from the original (PDF) on 2 July 2018. Retrieved 18 January 2011.
  4. ^ Mark Johnson; Charles Crawford; Chris Armbrust (2007). High-Definition DVD Handbook : Producing for HD-DVD and Blu-Ray Disc: Producing for HD-DVD and Blu-Ray Disc. McGraw Hill Professional. pp. 4–10. ISBN 9780071485852. ...connections such as S/PDIF do not have the bandwidth necessary to deliver uncompressed surround sound...
  5. ^ "Sound card". kioskea.net. Kioskea Network. Retrieved 4 August 2010. The components of a sound card are: [...] An SPDIF digital output (Sony Philips Digital Interface, also known as S/PDIF or S-PDIF or IEC 958 or IEC 60958 since 1998). This is an output line that sends digitised audio data to a digital amplifier using a coaxial cable with RCA connectors at the ends.
  6. ^ Finger, Robert A. 1992 'AES3-1992: The RevisedTwo-ChannelDigital Audio Interface', J.AudioEng.Soc., Vol.40, No. 3, 1992 March, p108
  7. ^ "SPDIF connections: Get connected, not confused". Retrieved 15 May 2024.
  8. ^ Dennis Bohn (2001). "Interfacing AES3 & S/PDIF" (PDF). Rane Corporation. p. 2. Retrieved 18 January 2011.
  9. ^ "Understanding/Analyzing Digital Audio Channel Status Bits". Archived from the original on 28 February 2019. Retrieved 7 July 2022.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  10. ^ "Receiving S/PDIF audio stream with the STM32F4/F7/H7 Series" (PDF). Retrieved 1 August 2025.
  11. ^ Digitalton - Schnittstelle für nichtlinear-PCM-codierte Audio-Bitströme unter Verwendung von IEC 60958 - Teil 1: Allgemeines (IEC 61937-1:2007 + A1:2011); Deutsche Fassung EN 61937-1:2007 + A1:2011
  12. ^ "FFmpeg: libavformat/spdif.h File Reference". ffmpeg.org.
  13. ^ "Representing Formats for IEC 61937 Transmissions - Win32 apps". learn.microsoft.com. 15 May 2023.
  14. ^ Giorgio Pozzoli. "DIGITabilis: crash course on digital audio interfaces" tnt-audio.com.
  15. ^ Chris Dunn, Malcolm J. Hawksford. "Is the AES/EBU/SPDIF Digital Audio Interface Flawed?" AES Convention 93, paper 3360.
  16. ^ a b Tracy, Norman. "On Jitter, the S/PDIF Standard, and Audio DACs". Archived from the original on 1 July 2017.
  17. ^ Lesso, Paul (2006). "A High Performance S/PDIF Receiver" (PDF). Audio Engineering Society. Archived from the original (PDF) on 4 June 2014. {{cite journal}}: Cite journal requires |journal= (help) AES Convention 121, paper 6948
[edit] Wikimedia Commons has media related to S/PDIF.
  • S/PDIF at Epanorama.net
  • S/PDIF at hardwarebook.net at the Wayback Machine (archived 2022-09-11)
  • More about channel data bits
  • Interfacing AES3 and S/PDIF
  • v
  • t
  • e
Audio and video connectors
Analog audio
  • Banana plug
  • Binding post
  • D-subminiature
  • Euroblock
  • DIN
    • Mini-DIN
  • Audio jack
  • RCA
  • Speaker spring terminal
  • Speakon
  • XLR
Digital audio
  • BNC
  • D-sub
  • S/PDIF
  • TOSLINK
  • XLR
Video
  • BNC
  • Component RGB
  • Component YPbPr
  • Composite video
  • D-Terminal
  • DB13W3
  • DFP
  • DIN
    • Mini-DIN
  • DMS-59
    • LFH
  • DVI
    • Mini-DVI
    • Micro-DVI
  • RCA
  • S-Video
  • UDI
  • VGA
    • Mini-VGA
Audio and video
  • ADC
  • Belling-Lee
  • CCJ/EIAJ
  • EVC
  • Type F
  • GPMI
  • HDBaseT
  • HDMI
  • DisplayPort
    • mDP
  • MHL (superMHL)
  • Minijack
  • P&D
  • PDMI
  • SCART
Visual charts
  • List of video connectors
General-purpose
  • Thunderbolt
  • USB
  • v
  • t
  • e
Audio and video interfaces and connectors
Audio only
Analog
  • PC System Design Guide
    • connectors: TRS 3.5 mm
  • Balanced audio
    • connectors: TRS 6.35 mm
    • XLR
Digital
  • S/PDIF
    • connectors: RCA jack, coaxial
    • TOSLINK, optical
    • BNC
  • AES3, AES/EBU
    • connectors: RCA jack
    • XLR
    • TOSLINK, optical
    • BNC
Video only
Analog
  • VGA
    • connectors: DB-15
    • DVI-A
  • Composite
    • connectors: RCA jack yellow
  • S-Video
    • connectors: Mini-DIN 4 pin
  • Component
    • connectors: RCA jacks × 3
    • Composite
  • S-Video, and Component
    • connectors: VIVO using Mini-DIN 9 pin
Digital and analog
  • DVI
    • connectors: DVI-I/DVI-D
Video and audio
Digital
  • GPMI
  • HDMI
    • connectors: HDMI connector
  • DisplayPort
    • connectors: DisplayPort connector
  • HDBaseT
    • connectors: 8P8C connector
  • v
  • t
  • e
Digital audio and video protocols
Control
Direct
  • HDBaseT
Bus
  • CEC
  • MIDI
  • Modbus
  • Obsolete:
    • mLAN
    • ZIPI
IP
  • Modbus
  • ONVIF
  • Open Sound Control
  • AES70
  • RTSP
  • RTP-MIDI
  • DetNet
Audio only
Direct
  • ADAT Lightpipe
  • AES3
  • MADI
  • S/PDIF
Bus
  • A-Net
  • AES50 (SuperMAC)
  • AudioRail
  • MaGIC
Ethernet
  • AES51
  • AVB
    • Milan
  • CobraNet
  • dSNAKE
  • EtherSound
  • REAC
  • SoundGrid
IP
  • AES67
  • Dante
  • NetJack
  • Livewire
  • Q-LAN
  • Ravenna
  • WheatNet-IP
Video
Direct
  • DVI
  • HDBaseT
  • HDMI
  • SDI
Bus
  • DisplayPort
Ethernet
  • AVB
  • TSN
IP
  • HBRMT
  • IPMX
  • IPTV
  • MMT
  • MTS
  • NDI
  • RTMP
  • RTP
  • SMPTE 2022
  • SMPTE 2110
  • SRT
Other
Visual charts
  • Comparison of audio network protocols
See also
  • AES47
  • v
  • t
  • e
Sony
History
Founders
  • Masaru Ibuka
  • Akio Morita
Primary businesses
  • Sony Corporation
  • Sony Semiconductor Solutions
  • Sony Pictures
  • Sony Music Group
    • Entertainment
    • Publishing
  • Sony Music Entertainment Japan
    • Aniplex
      • A-1 Pictures
      • CloverWorks
      • Hayate Inc.
  • Sony Interactive Entertainment
    • PlayStation
Technologiesand brands
  • α (Alpha)
  • Archival Disc
  • Betacam
  • Bionz
  • Blu-ray
  • Bravia
  • CD
  • Cell
  • Cyber-shot
  • Dash
  • Dream Machine
  • DVD
  • Exmor
  • FeliCa
  • Handycam
  • HDCAM/HDCAM-SR
  • HMZ-T1
  • Inzone
  • LocationFree
  • Memory Stick
  • MiniDisc
  • MiniDV
  • MicroMV
  • mylo
  • PlayNow
  • PlayStation
  • Reader
  • S/PDIF
  • SDDS
    • 8 channel films
  • Sony Entertainment Network
  • SXRD
  • Sony Tablet
  • Tunnel diode
  • TransferJet
  • UMD
  • Vaio
  • Video8/Hi8/Digital8
  • Vision-S
  • Walkman
  • XDCAM
  • Xperia
Historical products
  • AIBO
  • CV-2000
  • DAT
  • Betamax
  • Sony CLIÉ
  • Discman
  • Jumbotron
  • Lissa
  • Mavica
  • NEWS
  • Optiarc
  • PVM-4300
  • Qualia
  • Rolly
  • TR-55
  • Trinitron
    • FD series
  • 1 inch Type C
  • U-matic
  • Vaio
  • Watchman
  • WEGA
Electronics
  • Sony Creative Software
  • FeliCa Networks (57%)
Online distributionplatforms
  • PlayStation Network
    • PlayStation Plus
    • PlayStation Store
  • Sony Pictures Core
  • SonyLIV
  • Crunchyroll
  • mora
  • Great American Pure Flix (joint venture with Great American Media)
Former/Defunct
  • Sony Entertainment Network
  • Sony Connect
  • PlayNow
  • PlayStation Now
  • PlayStation Video
  • PlayStation Vue
  • Anime Digital Network
  • Anime on Demand
  • AnimeLab
  • Crackle
    • Minisodes
  • Funimation
  • PressPlay
  • VRV
  • Wakanim
Other businesses
  • Sony DADC
  • Sony Network Communications
  • Sony Professional Solutions
  • Sony Honda Mobility (50%)
  • M3 (39.4%)
  • Vaio (4.9%)
Other assets
  • Sony Corporation of America (umbrella company in the US)
  • Other subsidiaries
  • List of acquisitions
  • List of libraries
Nonprofit organizations
  • Sony Institute of Higher Education Shohoku College
Other
  • Sony Toshiba IBM Center of Competence for the Cell Processor
  • Sony timer
  • v
  • t
  • e
IEC standards
IEC
  • 60027
  • 60034
  • 60038
  • 60062
  • 60063
  • 60068
  • 60112
  • 60228
  • 60269
  • 60297
  • 60309
  • 60320
  • 60364
  • 60446
  • 60559
  • 60601
  • 60870
    • 60870-5
    • 60870-6
  • 60906-1
  • 60908
  • 60929
  • 60958
  • 60980-344
  • 61030
  • 61131
    • 61131-3
    • 61131-9
  • 61158
  • 61162
  • 61334
  • 61355
  • 61360
  • 61400
  • 61499
  • 61508
  • 61511
  • 61784
  • 61850
  • 61851
  • 61883
  • 61960
  • 61968
  • 61970
  • 62014-4
  • 62026
  • 62056
  • 62061
  • 62196
  • 62262
  • 62264
  • 62304
  • 62325
  • 62351
  • 62365
  • 62366
  • 62379
  • 62386
  • 62455
  • 62680
  • 62682
  • 62700
  • 63110
  • 63119
  • 63382
ISO/IEC
  • 646
  • 1989
  • 2022
  • 4909
  • 5218
  • 6429
  • 6523
  • 7810
  • 7811
  • 7812
  • 7813
  • 7816
  • 7942
  • 8613
  • 8632
  • 8652
  • 8859
  • 9126
  • 9293
  • 9496
  • 9529
  • 9592
  • 9593
  • 9899
  • 9945
  • 9995
  • 10021
  • 10116
  • 10165
  • 10179
  • 10279
  • 10646
  • 10967
  • 11172
  • 11179
  • 11404
  • 11544
  • 11801
  • 12207
  • 13250
  • 13346
  • 13522-5
  • 13568
  • 13816
  • 13818
  • 14443
  • 14496
  • 14651
  • 14882
  • 15288
  • 15291
  • 15408
  • 15444
  • 15445
  • 15504
  • 15511
  • 15693
  • 15897
  • 15938
  • 16262
  • 16485
  • 17024
  • 17025
  • 18004
  • 18014
  • 18181
  • 19752
  • 19757
  • 19770
  • 19788
  • 20000
  • 20802
  • 21000
  • 21827
  • 22275
  • 22537
  • 23000
  • 23003
  • 23008
  • 23270
  • 23360
  • 24707
  • 24727
  • 24744
  • 24752
  • 26300
  • 27000
  • 27000 family
  • 27002
  • 27040
  • 29110
  • 29119
  • 33001
  • 38500
  • 39075
  • 42010
  • 80000
  • 81346
Related
  • International Electrotechnical Commission
  • v
  • t
  • e
Technical and de facto standards for wired computer buses
General
  • System bus
  • Front-side bus
  • Back-side bus
  • Daisy chain
  • Control bus
  • Address bus
  • Bus contention
  • Bus mastering
  • Network on a chip
  • Plug and play
  • Double data rate
  • Quad data rate
  • List of bus bandwidths
Standards
  • SS-50 bus
  • S-100 bus
  • Multibus
  • Unibus
  • VAXBI
  • MBus
  • STD Bus
  • SMBus
  • Q-Bus
  • Europe Card Bus
  • ISA
  • STEbus
  • Zorro II
  • Zorro III
  • CAMAC
  • FASTBUS
  • LPC
  • HP Precision Bus
  • EISA
  • VME
  • VXI
  • VXS
  • VPX
  • NuBus
  • TURBOchannel
  • MCA
  • SBus
  • VLB
  • HP GSC bus
  • InfiniBand
  • Ethernet
  • UPA
  • PCI
  • PCI Extended (PCI-X)
  • PXI
  • PCI Express (PCIe)
  • AGP
  • Compute Express Link (CXL)
  • Direct Media Interface (DMI)
  • RapidIO
  • Intel QuickPath Interconnect
  • NVLink
  • HyperTransport
    • Infinity Fabric
  • Intel Ultra Path Interconnect
  • Coherent Accelerator Processor Interface (CAPI)
  • SpaceWire
Storage
  • ST-506
  • ESDI
  • SDI
  • IPI
  • SMD
  • Floppy connector
  • Parallel ATA (PATA)
  • Bus and Tag
  • DSSI
  • HIPPI
  • Serial ATA (SATA)
  • SCSI
    • Parallel
    • SAS
  • ESCON
  • Fibre Channel
  • SSA
  • SATAe
  • PCI Express (via AHCI or NVMe logical device interface)
Peripheral
  • Apple Desktop Bus
  • Atari SIO
  • DCB
  • Commodore bus
  • HP-IL
  • HIL
  • MIDI
  • RS-232
  • RS-422
  • RS-423
  • RS-485
  • Lightning
  • DMX512-A
  • IEEE-488 (GPIB)
  • IEEE-1284 (parallel port)
  • IEEE-1394 (FireWire)
  • UNI/O
  • 1-Wire
  • I²C (ACCESS.bus, PMBus, SMBus)
  • I3C
  • SPI
  • D²B
  • Parallel SCSI
  • Profibus
  • USB
  • Camera Link
  • External PCIe
  • Thunderbolt
  • CAN bus
Audio
  • ADAT Lightpipe
  • AES3
  • Intel HD Audio
  • I2S
  • MADI
  • McASP
  • S/PDIF
  • TOSLINK
Portable
  • PC Card
  • ExpressCard
Embedded
  • Multidrop bus
  • CoreConnect
  • AMBA (AXI)
  • Wishbone
  • SLIMbus
Interfaces are listed by their speed in the (roughly) ascending order, so the interface at the end of each section should be the fastest. Category

Tag » What Is A Spdif Out