Realtek provides this document “as is”, without warranty of any kind, neither expressed nor implied,
including, but not limited to, the particular purpose. Realtek may make improvements and/or changes in
this document or in the product described in this document at any time. This document could include
technical inaccuracies or typographical errors.
TRADEMARKS
Realtek is a trademark of Realtek Semiconductor Corporation. Other names mentioned in this document
are trademarks/registered trademarks of their respective owners.
USING THIS DOCUMENT
This document is intended for the hardware and software engineer’s general information on the Realtek
ALC268 Series Audio Codecs.
Though every effort has been made to assure that this document is current and accurate, more information
may have become available subsequent to the production of this guide. In that event, please contact your
Realtek representative for additional information that may help in the development process.
REVISION HISTORY
Revision Release Date Summary
1.0 2006/09/04 First release.
2+2 Channel High Definition Audio Codec ii Track ID: JATR-1076-21 Rev. 1.0
ALC268 Series
Datasheet
Table of Contents
1. General Description .................................................................................................... 1
2. Features ........................................................................................................................2
7. High Definition Audio Link Protocol ...................................................................... 10
7.1. LINK SIGNALS ................................................................................................................................10
7.1.1. Signal Definitions.................................................................................................................................................11
ESET AND INITIALIZATION............................................................................................................19
7.3.1. Link Reset.............................................................................................................................................................19
7.4.1. Command Verb Format ........................................................................................................................................22
9.1.1. Absolute Maximum Ratings..................................................................................................................................64
9.1.2. Threshold Voltage .................................................................................................................................................64
9.1.3. Digital Filter Characteristics ...............................................................................................................................65
9.2.1. Link Reset and Initialization Timing.....................................................................................................................66
9.2.2. Link Timing Parameters at the Codec ..................................................................................................................67
9.2.4. Test Mode..............................................................................................................................................................68
9.3. ANALOG PERFORMANCE ................................................................................................................69
Figure 23. Digital Microphone Implementation-1....................................................................................73
Figure 24. Digital Microphone Implementation-2....................................................................................73
2+2 Channel High Definition Audio Codec viii Track ID: JATR-1076-21 Rev. 1.0
ALC268 Series
Datasheet
1. General Description
The ALC268 series are 4-Channel High Definition Audio Codecs with UAA (Universal Audio
Architecture), featuring two stereo DACs and two stereo ADCs. The 4 channels of DAC support stereo
sound playback on the rear panel and independent stereo sound output on the front panel simultaneously
(multiple streaming). The two stereo ADCs integrate two stereo and independent analog sound inputs.
The ALC268 series incorporates Realtek proprietary converter technology to achieve 95dB dynamic
range playback quality and 90dB dynamic range recording quality. They are designed for Windows Vista
premium desktop and laptop systems.
The ALC268 series also supports up to 4 digital microphone channels (microphone array) with Acoustic
Echo Cancellation (AEC), Beam Forming (BF), and Noise Suppression (NS) technology simultaneously,
significantly improving sound quality for PC VoIP applications.
The S/PDIF output offers easy connection of PCs to high quality consumer electronic products such as
digital decoders and speakers.
The ALC268 supports host/soft audio from the Intel ICH chipset, and also from any other HDA
compatible audio controller. With EAX/Direct Sound 3D/I3DL2/A3D compatibility, and excellent
software utilities like Karaoke mode, environment emulation, and software equalizer audio technology to
provide an excellent entertainment package and game experience for PC users.
The High Definition Audio (HDA) Link is the digital serial interface that connects the HDA codecs to the
HDA Controller. The HDA link protocol is controller synchronous, based on a 24.0MHz BIT-CLK sent
by the HDA controller. The input and output streams, including command and PCM data, are isochronous
with a 48kHz frame rate. Figure 5 shows the basic concept of the HDA link protocol.
BCLK 24.0MHz of bit clock sourced from the HDA controller and connecting to all codecs.
SYNC
SDO
SDI
RST#
Signal Name Source Type for Controller Description
BCLK Controller Output Global 24.0MHz bit clock.
SYNC Controller Output Global 48kHz Frame Sync and outbound tag signal.
SDO Controller Output Serial data output from controller.
SDI Codec/Controller Input/Output
RST# Controller Output Global active low reset signal.
48kHz of signal is used to synchronize input and output streams on the link. It is sourced from the HDA
controller and connects to all codecs.
Serial data output signal driven by the HDA controller to all codecs. Commands and data streams are carried
on SDO. The data rate is double pumped; the controller drives data onto the SDO, the codec samples data
present on SDO with respect to each edge of BCLK. The HDA controller must support at least one SDO. To
extend outbound bandwidth, multiple SDOs may be supported.
Serial data input signal driven by the codec. It is point-to-point serial data from the codec to the HDA
controller. The controller must support at least one SDI, and up to a maximum of 15 SDI’s can be supported.
SDI is driven by the codec at each rising edge of BCLK, and sampled by the controller at each rising edge of
BCLK. SDI can be driven by the controller to initialize the codec’s ID.
Active low reset signal. Asserted to reset the codec to default power on state. RST# is sourced from the
HDA controller and connects to all codecs.
Table 6. HDA Signal Definitions
Serial data input from codec. Weakly pulled down by the
controller.
Codec samples SDO at both rising and falling edge of BCLK
Figure 6. Bit Timing
11
498
497496495494
ALC268 Series
Datasheet
7.1.2. Signaling Topology
The HDA controller supports two SDOs for the outbound stream, up to 15 SDIs for the inbound stream.
RST#, BCLK, SYNC, SDO0 and SDO1 are driven by controller to codecs. Each codec drives its own
point-to-point SDI signal(s) to the controller.
Figure 7 shows the possible connections between the HDA controller and codecs:
Codec 0 is a basic connection. There is one single SDO and one single SDI for normal transmission
Codec 1 has two SDOs for doubled outbound rate, a single SDI for normal inbound rate
Codec 3 supports a single SDO for normal outbound rate, and two SDIs for doubled inbound rate
Codec N has two SDOs and multiple SDIs
The multiple SDOs and multiple SDIs are used to expand the transmission rate between controller and
codecs. Section 7.2 Frame Composition, page 13 describes the detailed outbound and inbound stream
compositions for single and multiple SDOs/SDIs.
The connections shown in Figure 7 can be implemented concurrently in an HDA system. The ALC268 is
designed to receive a single SDO stream.
An outbound frame is composed of one 32-Bit command stream and multiple data streams. There are one
or multiple sample blocks in a data stream. Only one sample block exists in a stream if the HDA
controller delivers a 48kHz rate of samples to the codec. Multiple sample blocks in a stream means the
sample rate is a multiple of 48kHz. This means there should be 2 blocks in the same stream to carry
96kHz samples (Figure 8).
For outbound frames, the stream tag is not in SDO, but in the SYNC signal. A new data stream is started
at the end of the stream tag. The stream tag includes a 4-Bit preamble and 4-Bit stream ID (Figure 9).
To keep the cadence of converters bound to the same stream, samples for these converters must be placed
in the same block.
SYNC
SDO
A 48kHz Frame is composed of Command stream and multiple Data streams
Frame SYNC
Command Stream
Sample Block(s)
Block 1
Sample 1 Sample 2
msb
Block 2
...
BCLK
SYNC
Stream 'A' TagStream 'X' Tag
(Here 'A' = 5)(Here 'X' = 6)
One or multiple blocks in a stream
..
.
..
.
msb first in a sample
lsb
Figure 8. SDO Outbound Frame
Block Y
Sample Z
Stream Tag
msblsb
Stream 'X' DataStream 'A' Data
Null Field
For 48kHz rate, only Block1 is included
For 96kHz rate, Block1 includes (N)
includes (N+1)
The HDA controller allows two SDO signals to be used to strip outbound data, completing transmission
in less time to get more bandwidth. If software determines the target codec supports multiple SDO
capability, it enables the ‘Strip Control’ bit in the controller’s Output Stream Control Register to initiate a
specific stream (Stream ‘A’ in Figure 10) to be transmitted on multiple SDOs. In this case, the MSB of
stream data is always carried on SDO0, the second bit on SDO1 and so forth.
SDO1 is for transmitting a stripped stream. The codec does not support multiple SDOs connected to
SDO0.
To guarantee all codecs can determine their corresponding stream, the command stream is not stripped. It
is always transmitted on SDO0, and copied on SDO1.
An Inbound Frame – Single SDI is composed of one 36-Bit response stream and multiple data streams.
Except for the initialization sequence (turnaround and address frame), SDI is driven by the codec at each
rising edge of BCLK. The controller also samples data at the rising edge of BCLK (Figure 11).
The SDI stream tag is not carried by SYNC, but included in the SDI. A complete SDI data stream
includes one 4-Bit stream tag, one 6-Bit data length, and n-Bit sample blocks. Zeros will be padded if the
total length of the contiguous sample blocks within a given stream is not of integral byte
length (Figure 12).
SYNC
SDI
A 48kHz Frame is Composed of a Response Stream and Multiple Data streams
Frame SYNC
Response Stream
Sample Block(s)Stream Tag
Block 1
Sample 1 Sample 2...Sample Z
Block 2
msb...lsb
...Block Y
msb first in a sample
Figure 11. SDI Inbound Stream
Stream 'A'
Null Pad
For 48kHz rate, only Block1 is included
For 96kHz rate, Block{1, 2} includes {(N)
A codec can deliver data to the controller on multiple SDIs to achieve higher bandwidth. If an inbound
stream exceeds the data transfer limits of a single SDI, the codec can divide the data onto separate SDI
signals, each of which operate independently, with different stream numbers at the same frame time. This
is similar to having multiple codecs connected to the controller. The controller samples the divided stream
into separate memory with multiple DMA descriptors, then software re-combines the divided data into a
meaningful stream.
SYNC
Frame SYNC
SDI
0
SDI
1
Codec drives SDI
Response Stream
Response Stream
and SDI
0
1
Tag A
Tag BData B
Figure 13. Codec Transmits Data Over Multiple SDIs
Stream 'A'
Data A
Stream 'B'
Stream A, B, X, and Y are independent and have separate IDs
Stream 'X'
0s
Stream 'Y'
0s
7.2.5.Variable Sample Rates
The HDA link is designed for sample rates of 48kHz. Variable rates of sample are delivered in multiple or
sub-multiple rates of 48kHz. Two sample blocks per frame result in a 96kHz delivery rate, one sample
block over two frames results in a 24kHz delivery rate. The HDA specification states that the sample rate
of the outbound stream be synchronized by the controller, not by the codec. Each stream has its own
sample rate, independent of any other stream.
The HDA controller supports 48kHz and 44.1kHz base rates. Table 7, page 17, shows the recommended
sample rates based on multiples or sub-multiples of one of the two base rates.
Rates in sub-multiples (1/n) of 48kHz are interleaving n frames containing no sample blocks. Rates in
multiples (n) of 48kHz contain n sample blocks in a frame. Table 8, page 17, shows the delivery cadence
of variable rates based on 48kHz.
The HDA link is defined to operate at a fixed 48kHz frame rate. To deliver samples in (sub) multiple
rates of 44.1kHz, an appropriate ratio between 44.1kHz and 48kHz must be maintained to avoid
frequency drift. The appropriate ratio between 44.1kHz and 48kHz is 147/160. Meaning 147 sample
blocks are transmitted every 160 frames. The cadence
“12-11-11-12-11-11-12-11-11-12-11-11-11- (repeat)”
interleaves 13 frames containing no sample blocks in every 160 frames. It provides a low long-term
frequency drift for 44.1kHz of delivery rate. Rates in sub-multiples (1/n) of 44.1kHz also follow this
cadence AND interleave n empty frames. Rates in multiples (n) of 44.1kHz applying this cadence contain
n sample blocks in the non-empty frame AND interleave an empty frame between non-empty
frames (Table 9, page 18).
Table 7. Defined Sample Rate and Transmission Rate
(Sub) Multiple 48kHz Base 44.1kHz Base
1/6 8kHz (1 sample block every 6 frames)
1/4 12kHz (1 sample block every 4 frames) 11.025kHz (1 sample block every 4 frames)
1/3 16kHz (1 sample block every 3 frames)
1/2 22.05kHz (1 sample block every 2 frames)
2/3 32kHz (2 sample blocks every 3 frames)
1 48kHz (1 sample block per frame) 44.1kHz (1 sample block per frame)
2 96kHz (2 sample blocks per frame) 88.2kHz (2 sample blocks per frame)
4 192kHz (4 sample blocks per frame) 176.4kHz (4 sample blocks per frame)
Table 8. 48kHz Variable Rate of Delivery Timing
Rate Delivery Cadence Description
8kHz YNNNNN (repeat) One sample block is transmitted in every 6 frames
12kHz YNNN (repeat) One sample block is transmitted in every 4 frames
16kHz YNN (repeat) One sample block is transmitted in every 3 frames
32kHz Y2NN (repeat) One sample block is transmitted in every 6 frames
48kHz Y (repeat) One sample block is transmitted in every 6 frames
96kHz Y2 (repeat) Two sample blocks are transmitted in each frame
192kHz Y4 (repeat) Four sample blocks are transmitted in each frame
N: No sample block in a frame
Y: One sample block in a frame