Realtek provides this document “as is”, without warranty of any kind. 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.
Datasheet
USING THIS DOCUMENT
This document is intended for the hardware and software engineer’s general information on the Realtek
ALC662 codec IC.
Though every effort has been made to ensure that this document is current and accurate, more
information may have become available subsequent to the production of this guide.
REVISION HISTORY
Revision Release Date Summary
1.0 2007/01/15 First release for ALC662.
1.1 2008/03/15 Added ALC662-VC (ALC662 C version) data.
Update passband ripple information in Table 82, page 64.
1.2 2008/12/02
1.3 2009/07/03 Added ALC662-VC1-GR part number information.
Correct General Description and Software Features sections. The ALC662 supports
Dolby Digital Live (Dolby Home Theater is not supported).
ALC662-VC part number corrected to ALC662-VC0-GR.
Revised Table 85, page 66.
5.1 Channel High Definition Audio Codec ii Track ID: JATR-1076-21 Rev. 1.3
Page 3
ALC662 Series
Datasheet
Table of Contents
1. GENERAL DESCRIPTION..............................................................................................................................................1
2.1.HARDWARE FEATURES ................................................................................................................................................2
2.3.ALC662-VCSERIES UPGRADED FEATURES FOR FUTURE WLP ..................................................................................4
3. SYSTEM APPLICATIONS...............................................................................................................................................4
5.1.PACKAGE AND VERSION IDENTIFICATION ....................................................................................................................6
7.1.1. Signal Definitions .................................................................................................................................................10
7.3.RESET AND INITIALIZATION .......................................................................................................................................18
7.3.1. Link Reset .............................................................................................................................................................18
7.4.VERB AND RESPONSE FORMAT ..................................................................................................................................20
7.5.1. System Power State Definitions............................................................................................................................23
7.5.2. Power Controls in NID 01h..................................................................................................................................24
7.5.3. Powered Down Conditions...................................................................................................................................24
8. SUPPORTED VERBS AND PARAMETERS................................................................................................................25
8.11.VERB –GET AMPLIFIER GAIN (VERB ID=BH) ...........................................................................................................40
8.12.VERB –SET AMPLIFIER GAIN (VERB ID=3H) ............................................................................................................43
8.13.VERB –GET CONVERTER FORMAT (VERB ID=AH)....................................................................................................44
8.14.GET CONVERTER FORMAT SUPPORT ..........................................................................................................................44
8.15.VERB –SET CONVERTER FORMAT (VERB ID=2H) .....................................................................................................45
8.16.VERB –GET POWER STATE (VERB ID=F05H)............................................................................................................46
8.17.VERB –SET POWER STATE (VERB ID=705H).............................................................................................................46
9.1.1. Absolute Maximum Ratings..................................................................................................................................63
9.1.2. Threshold Voltage ................................................................................................................................................63
9.1.3. Digital Filter Characteristics ...............................................................................................................................64
9.2.1. Link Reset and Initialization Timing ....................................................................................................................65
9.2.2. Link Timing Parameters at the Codec..................................................................................................................66
9.2.4. Test Mode .............................................................................................................................................................67
TABLE 15.SOLICITED RESPONSE FORMAT .................................................................................................................................23
TABLE 16.UNSOLICITED RESPONSE FORMAT .............................................................................................................................23
TABLE 17.SYSTEM POWER STATE DEFINITIONS ........................................................................................................................23
TABLE 18.POWER CONTROLS IN NID01H .................................................................................................................................24
TABLE 19.POWERED DOWN CONDITIONS ..................................................................................................................................24
TABLE 46.VERB –GET AMPLIFIER GAIN (VERB ID=BH)...........................................................................................................40
TABLE 47.VERB –SET AMPLIFIER GAIN (VERB ID=3H)............................................................................................................43
TABLE 48.VERB –GET CONVERTER FORMAT (VERB ID=AH) ...................................................................................................44
TABLE 49.GET CONVERTER FORMAT SUPPORT .........................................................................................................................44
TABLE 50.VERB –SET CONVERTER FORMAT (VERB ID=2H).....................................................................................................45
TABLE 51.VERB –GET POWER STATE (VERB ID=F05H)...........................................................................................................46
TABLE 52.VERB –SET POWER STATE (VERB ID=705H)............................................................................................................46
5.1 Channel High Definition Audio Codec vi Track ID: JATR-1076-21 Rev. 1.3
TABLE 80.ABSOLUTE MAXIMUM RATINGS................................................................................................................................63
TABLE 81.THRESHOLD VOLTAGE ..............................................................................................................................................63
TABLE 84.LINK RESET AND INITIALIZATION TIMING .................................................................................................................65
TABLE 85.LINK TIMING PARAMETERS AT THE CODEC ...............................................................................................................66
FIGURE 7.SDOSTREAM TAG IS INDICATED IN SYNC..............................................................................................................12
FIGURE 8.STRIPED STREAM ON MULTIPLE SDOS.....................................................................................................................13
FIGURE 10.SDISTREAM TAG AND DATA ..................................................................................................................................14
FIGURE 11.CODEC TRANSMITS DATA OVER MULTIPLE SDIS ....................................................................................................15
FIGURE 14.LINK RESET AND INITIALIZATION TIMING................................................................................................................65
FIGURE 15.LINK SIGNAL TIMING ...............................................................................................................................................66
5.1 Channel High Definition Audio Codec viii Track ID: JATR-1076-21 Rev. 1.3
Page 9
ALC662 Series
Datasheet
1. General Description
ALC662 products are 5.1 Channel High Definition Audio Codecs designed for Windows Vista premium
desktop and mobile PCs. The ALC662, ALC662-VC0, and ALC662-VC1 (ALC662 version C series)
meet audio performance and function requirements for the latest Microsoft WLP3.10 (Windows Logo
Program).
The ALC662-VC series (ALC662-VC0 and ALC662-VC1) are upgraded versions of the ALC662 that
pass stricter WLP performance requirements (See section 2.3 ALC662-VC Series Upgraded Features for
Future WLP, page 4).
The ALC662 series feature three stereo DACs, two stereo ADCs, and legacy analog input to analog
output mixing, to provide fully integrated audio solutions for multimedia PCs and ultra mobile devices.
All analog IO (except CD-IN and PCBEEP) are input and output capable, and three headphone amplifiers
are also integrated to drive earphones on front (port-E and port-F) and rear panel (port-D).
The ALC662 series support 16/20/24-bit SPDIF output function and a sampling rate of up to 96kHz.
They offer easy connection of PCs to high quality consumer electronic products such as digital decoders
and speakers.
The ALC662 series support host audio from Intel chipsets, and also from any other HDA compatible
audio controller. With EAX/Direct Sound 3D/I3DL2 compatibility, software utilities like Karaoke mode,
environment emulation, multi-band software equalizer, 3D positional audio, and optional Dolby® Digital
Live and DTS® CONNECT™ programs, the ALC662 series provide an excellent home entertainment
package and game experience for PC users.
Green package is indicated by a ‘G’ in the location marked ‘T’ in Figure 2. The version number is shown
in the location marked ‘VV’. For example, ‘VV=C0’ indicates silicon version ‘C’ and stepping version
‘0’, which is the stepping of the ALC662-VC0.
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 3 shows the basic concept of the HDA link protocol.
BCLK 24.0MHz bit clock sourced from the HDA controller and connecting to all codecs.
SYNC
SDO
SDI
RESET#
A 48kHz signal 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. This is point-to-point serial data from the codec to the HDA
controller. The controller must support at least one SDI. 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. RESET# is sourced from
the HDA controller and connects to all codecs.
ALC662 Series
Datasheet
Table 7. HDA Signal Definitions
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
RESET# Controller Output Global Active Low Reset Signal.
Serial data input from codec. Weakly pulled down by the
controller.
BCLK
SYNC
SDO
8-Bit Frame SYNC
Start of Frame
76540123999 998 997 996995 994 993 992 991 990
SDI
3210 499
498
497496495494
Codec samples SDO at both rising and falling edge of BCLK
The HDA controller supports two SDOs for the outbound stream, up to 15 SDIs for the inbound stream.
RESET#, BCLK, SYNC, SDO0, and SDO1 are driven by the controller to codecs. Each codec drives its
own point-to-point SDI signal(s) to the controller.
Figure 5 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, and 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 the controller and
codecs. Section 7.2 Frame Composition, page 12, describes the detailed outbound and inbound stream
compositions for single and multiple SDOs/SDIs.
The connections shown in Figure 5 can be implemented concurrently in an HDA system. The ALC662 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 6).
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 7).
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
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 6. 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 stripe outbound data, completing transmission
in less time to get more bandwidth. If software determines that the target codec supports multiple SDO
capability, it enables the ‘Stripe Control’ bit in the controller’s Output Stream Control Register to initiate
a specific stream (Stream ‘A’ in Figure 8) 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 striped stream. The codec does not support multiple SDOs connected to
SDO0.
To ensure that all codecs can determine their corresponding stream, the command stream is not striped. 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 9).
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 10).
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 9. 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 11. 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 sample rates 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 8, page 16, 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 9, page 16, 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 (see Table 10, page 17).
Table 8. 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)
Datasheet
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
Yx: X sample blocks in a frame
s If BCLK is re-started for any reason (codec, wake-up event, power management, etc.)
t Software is responsible for de-asserting RESET# after a minimum of 100µs BCLK running time (the
100µsec provides time for the codec PLL to stabilize)
u Minimum of 4 BCLKs after RESET# is de-asserted, the controller starts to signal normal frame SYNC
v The codec drives its SDI to request an initialization sequence (when the SDI is driven high at the last
bit of frame SYNC)
Datasheet
>=100 usec >= 4 BCLKInitialization Sequence
Normal Frame
SYNC
8
Wake Event
9
BCLK
SYNC
SDOs
SDIs
RST#
Previous Frame
Normal Frame
SYNC is absent
2
1
4 BCLK
Driven Low
Driven Low
Driven Low
4 BCLK
45367
Link in Reset
Pulled Low
Pulled Low
Pulled Low
Pulled Low
Figure 12. Link Reset Timing
7.3.2.Codec Reset
A ‘Codec Reset’ is initiated via the Codec RESET command verb. It results in the target codec being
reset to the default state. After the target codec completes its reset operation, an initialization sequence is
requested.
n The codec drives SDI high at the last bit of SYNC to request a Codec Address (CAD) from the
controller
o The codec stops driving the SDI during this turnaround period
pqrs The controller drives SDI to assign a CAD to the codec
t The controller releases the SDI after the CAD has been assigned
u Normal operating state
Figure 13. Codec Initialization Sequence
7.4.
Verb and Response Format
7.4.1. Command Verb Format
There are two types of verbs: one with 4-bit identifiers (4-bit verbs) and 16-bits of data, the other with
12-bit identifiers (12-bit verbs) and 8-bits of data. Table 11 shows the 4-bit verb structure of a command
stream sent from the controller to operate the codec. Table 12 is the 12-bit verb structure that gets and
controls parameters in the codec.
Table 11. 40-Bit Commands in 4-Bit Verb Format
Bit [39:32] Bit [31:28] Bit [27:20] Bit [19:16] Bit [15:0]
Reserved Codec Address Node ID Verb ID Payload
Table 12. 40-Bit Commands in 12-Bit Verb Format
Bit [39:32] Bit [31:28] Bit [27:20] Bit [19:8] Bit [7:0]
There are two types of response from the codec to the controller. Solicited Responses are returned by the
codec in response to a current command verb. The codec will send Solicited Response data in the next
frame, without regard to the Set (Write) or Get (Read) command. The 32-bit response is interpreted by
software, opaque to the controller.
Unsolicited Responses are sent by the codec independently of software requests. Jack Detection or GPI
status information can be actively delivered to the controller and interpreted by software. The ‘Tag’ in
Bit[31:28] is used to identify unsolicited events. This tag is undefined in the HDA specifications.
Table 15. Solicited Response Format
Bit [35] Bit [34] Bit [33:32] Bit [31:0]
Valid Unsol=0 Reserved Response
Table 16. Unsolicited Response Format
Bit [35] Bit [34] Bit [33:32] Bit [31:28] Bit [27:0]
Valid Unsol=1 Reserved Tag Response
7.5.
Power Management
The ALC662 does not support Wake-Up events when in low-power mode. All power management state
changes in widgets are driven by software. Table 17 shows the System Power State Definitions. Table 18
indicates those nodes that support power management. To simplify power control, software can configure
whole codec power states through the audio function (NID=01h). Output converters (DACs) and input
converters (ADCs) have no individual power control to supply fine-grained power control.
7.5.1.System Power State Definitions
Table 17. System Power State Definitions
Power States Definitions
D0 All power on. Individual DACs and ADCs can be powered up or down as required.
D1
D2
D3 (Hot) Power still supplied. The codec stops the internal clock. State is maintained.
D3 (Cold) All power removed. State lost.
All amplifiers and converters (DACs and ADCs) are powered down. State maintained, analog
reference stays up.
All amplifiers and converters (DACs and ADCs) are powered down. State maintained, but
analog reference is off (D1 + analog reference off).
Front DAC powered down Analog block and digital filter are powered down
Surr DAC powered down Analog block and digital filter are powered down
CEN/LFE DAC powered down Analog block and digital filter are powered down
ADC 08h powered down Analog block and digital filter are powered down. Data on SDATA-IN is quiet
ADC 09h powered down Analog block and digital filter are powered down. Data on SDATA-IN is quiet
Headphone Driver powered down All headphone drivers are powered down
Mixers powered down
References powered down
Internal clock is stopped. SDATA-IN and SPDIF-OUT are floated with pulled
low 47K resistors internally. SPDIF-IN is also floated. Detection of ‘Link
Reset Entry’ and ‘Link Reset Exit’ sequences are supported. All states are
maintained if DVDD is supplied
All internal mixer widgets are powered down. The DC reference and
VREFOUTx at individual pin complexes are still alive
All internal references, DC reference, and VREFOUTx at individual pin
complexes are off
This section describes the Verbs and Parameters supported by various widgets in the ALC662. If a verb is
not supported by the addressed widget, it will respond with 32 bits of ‘0’.
8.1.
Verb – Get Parameters (Verb ID=F00h)
The ‘Get Parameters’ verb is used to get system information and the function capabilities of the HDA
codec. All the parameters are read-only. There are a total of 15 ID parameters defined for each widget.
Some parameters are supported only in a specific widget. Refer to section 7.4.1 Command Verb Format,
page 20, to get detailed information about supported parameters.
Table 20. Verb – Get Parameters (Verb ID=F00h)
Get Parameter Command Format Codec Response Format
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
Parameters in audio functions provide default information about formats. Individual converters have their
own parameters to provide supported formats if their ‘Format Override’ bit is set.
Parameters in this node only provide default information for audio function groups. Individual converters
have their own parameters to provide supported formats if the ‘Format Override’ bit is set.
Parameters in this node provide audio function group default information. Individual converters have
their own parameters to provide amplifier capabilities if the ‘AMP Param Override’ bit is set.
Indicates the size of each step in the gain range.
15 Reserved. Read as 0.
14:8 Number of Steps.
Indicates the number of steps in the gain range. ‘0’ means the gain is fixed.
7 Reserved. Read as 0.
6:0 Offset.
Indicates which step is 0dB.
8.1.11. Parameter – Amplifier Capabilities
(Verb ID=F00h, Output Amplifier Parameter ID=12h)
Parameters in this node provide audio function group default information. Individual converters have
their own parameters to provide amplifier capabilities if the ‘AMP Param Override’ bit is set.
Indicates the size of each step in the gain range. Each individual step may be 0~32dB, specified in 0.25dB
steps. ‘0’ indicates 0.25dB steps. ‘127’ indicates 32dB steps.
15 Reserved. Read as 0.
14:8 Number of Steps.
Indicates the number of steps in the gain range. ‘0’ means the gain is fixed.
Indicates the number of inputs connected to a widget. If the Connect List Length is 1, there is only one
input, and there is no Connection Select Control (not a MUX widget).
8.1.13. Parameter – Supported Power States
(Verb ID=F00h, Parameter ID=0Fh)
ALC662 Series
Datasheet
Table 33. Parameter – Supported Power States (Verb ID=F00h, Parameter ID=0Fh)
7 Bit-15 is 0 in ‘Get Amplifier Gain’: Read as 0 (No Input Amplifier Mute).
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0 (No Output Amplifier Mute).
6:0 Bit-15 is 0 in ‘Get Amplifier Gain’: Read as 0 (No Input Amplifier Gain).
Bit-15 is 1 in ‘Get Amplifier Gain’: Output Amplifier Gain [6:0].
7-bit step value (0~64) specifying the volume from –64B~0dB in 1dB steps.
Codec Response for 08h (ADC)
Bit Description
31:8 0’s.
7 Bit-15 is 0 in ‘Get Amplifier Gain’: Input Amplifier Mute.
0: Unmute
1: Mute
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0 (No Output Amplifier Mute).
6:0 Bit-15 is 0 in ‘Get Amplifier Gain’: Input Amplifier Gain [6:0].
7-bit step value (0~31) specifying the volume from –13.5B~+33dB in 1.5dB steps.
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0’s (No Output Amplifier Mute).
7 Bit-15 is 0 in ‘Get Amplifier Gain’: Input Amplifier Mute.
0: Unmute
1: Mute
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0 (No Output Amplifier Mute).
6:0 Bit-15 is 0 in ‘Get Amplifier Gain’: Input Amplifier Gain [6:0].
7-bit step value (0~31) specifying the volume from –13.5B~+33dB in 1.5dB steps.
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0’s (No Output Amplifier Mute).
Codec Response for NID=0Bh (MIXER Sum Widget)
Bit Description
31:8 0’s.
7 Bit-15 is 0 in ‘Get Amplifier Gain’: Input Amplifier Mute.
0: Unmute
1: Mute (Default for all Index)
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0 (No Output Amplifier Mute).
6:0 Bit-15 is 0 in ‘Get Amplifier Gain’: Input Amplifier Gain [6:0].
7-bit step value (0~31) specifying the volume from –34.5dB~+12dB in 1.5dB steps.
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0’s (No Output Amplifier Mute).
ALC662 Series
Datasheet
Codec Response for NID=0Ch~0Eh (Sum Widget: Front, Surr, Cen/Lfe)
Bit Description
31:8 0’s.
7 Bit-15 is 0 in ‘Get Amplifier Gain’: Input Amplifier Mute.
0: Unmute
1: Mute
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0 (No Output Amplifier Mute).
6:0 Bit-15 is 0 in ‘Get Amplifier Gain’: Read as 0 (No Input Amplifier Gain).
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0 (No Output Amplifier Gain).
Codec Response for NID=14h, 15h, 16h and 1Ah (Pin Widget: FRONT/SURR/CEN/LINE1)
Bit Description
31:8 0’s.
7 Bit-15 is 0 in ‘Get Amplifier Gain’: Read as 0 (No Input Amplifier Mute).
Bit-15 is 1 in ‘Get Amplifier Gain’: Output Amplifier Mute.
0: Unmute
1: Mute (Default=1)
6:0 Bit-15 is 0 in ‘Get Amplifier Gain’: Read as 0 (No Input Amplifier Gain).
Bit-15 is 1 in ‘Get Amplifier Gain’: Read as 0 (No Output Amplifier Gain).
This verb is used to set amplifier gain/attenuation in each widget.
Table 47. Verb – Set Amplifier Gain (Verb ID=3h)
Set Command Format Codec Response Format
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
CAd=X Node ID=Xh Verb ID=3h ‘Set’ payload [7:0] 0’s for all nodes
‘Set’ Payload in Command Bit[15:0]
Bit Description
15 Set Output Amp.
1: Indicates output amplifier gain will be set
14 Set Input Amp.
1: Indicates input amplifier gain will be set
13 Set Left Amp.
1: Indicates left amplifier gain will be set
12 Set Right Amp.
1: Indicates right amplifier gain will be set
11:8 Index Offset (for input amplifiers on Sum widgets and Selector Widgets).
5-bit index offset in connection list is used to select the input gain that will be set on a Sum or a Selector
widget. The index is ignored if the node is not a Sum or a Selector widget, or the ‘Set Input Amp’ bit is not
set.
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
CAd=X Node ID=Xh Verb ID= F05h 0’s Power State [7:0]
Codec Response for NID=01h (Audio Function Group)
Bit Description
31:6 Reserved. Read as 0’s.
5:4
3:2 Reserved. Read as 0’s.
1:0
PS-Act. Actual Power State [1:0].
00: Power state is D0 01: Power state is D1
10: Power state is D2 11: Power state is D3
PS-Act indicates the actual power state of the referenced node. For Audio Function Group nodes
(NID=01h), PS-Act is always equal to PS-Set.
PS-Set. Set Power State [1:0].
00: Power state is D0 01: Power state is D1
10: Power state is D2 11: Power state is D3
PS-Set controls the current power setting of the referenced node.
Datasheet
Codec Response for other NID
Bit Description
31:0 Not Supported (returns 00000000h).
8.17. Verb – Set Power State (Verb ID=705h)
Table 52. Verb – Set Power State (Verb ID=705h)
Set Command Format Codec Response Format
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
CAd=X Node ID=Xh Verb ID=705h Power State [7:0] 0’s for all nodes
‘Power State’ in Command Bit[7:0]
Bit Description
7:6 Reserved. Read as 0’s.
5:4
3:2 Reserved. Read as 0’s.
1:0
PS-Act. Actual Power State [1:0].
00: Power state is D0 01: Power state is D1
10: Power state is D2 11: Power state is D3
PS-Act indicates the actual power state of the referenced node.
PS-Set. Set Power State [1:0].
00: Power state is D0 01: Power state is D1
10: Power state is D2 11: Power state is D3
Note: Only NID=14h (FRONT), 19h (MIC2), and 1Bh (LINE2) support headphone amplifier.
6 Out Enable (Output Buffet Enable, EN_OBUF for an I/O unit).
0: Disabled
1: Enabled
Note: NID=1Ch (CD-IN) and 1Dh (PCBEEP) do not support output and are always read 0.
5 In Enable (Input Buffer Enable, EN_IBUF for an I/O unit).
0: Disabled
1: Enabled
Note: NID=1Eh (SPDIF-OUT) does not support output and is always read 0.
4:3 Reserved.
2:0 VrefEn (Vrefout Enable Control).
000b: Hi-Z (Disabled, default for all)
001b: 50% of AVDD (The ALC662 supports 2.5V reference output when AVDD is 5V)
010b: Ground 0V
011b: Reserved
100b: 80% of AVDD (The ALC662 supports 3.2V reference output when AVDD is 5V)
101b: 100% of AVDD
110b~111b: Reserved
Note: Only NID=18h, 19h, and 1Bh support reference output, other nodes will ignore this verb and respond
with 0.
8.22. Verb – Get Unsolicited Response Control (Verb ID=F08h)
Determines whether a widget is enabled to send an unsolicited response. An HDA codec can use an
unsolicited response to inform software of a real time event.
Table 57. Verb – Get Unsolicited Response Control (Verb ID=F08h)
Get Command Format Codec Response Format
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
(Verb ID=71Ch/71Dh/71Eh/71Fh for Bytes 0, 1, 2, 3)
The BIOS can use this verb to figure out the default conditions (e.g., placement and expected default
device) for the Pin Widgets NID=0B~0Fh, 10h, 11h, 1Fh, 20h, and 12h.
Table 63. Verb – Get BEEP Generator (Verb ID= F0Ah)
Get Command Format Codec Response Format
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
CAd=X Node ID=01h Verb ID= F1Bh 0’s Divider [7:0]
‘Response’ for NID=01h
Bit Description
31:8 Reserved.
7:0 Frequency Divider, F[7:0].
The internal BEEP frequency is the result of dividing the 48kHz clock by 4 times the number specified in
F[7:0].
The lowest tone is 48kHz/(255*4)=47Hz. The highest tone is 48kHz/(1*4)=12kHz.
A value of 00h in F[7:0] disables the internal BEEP generator and allows external PCBEEP input.
Codec Response for Other NID
Bit Description
31:0 0’s.
Datasheet
8.29. Verb – Set BEEP Generator (Verb ID=70Ah)
Table 64. Verb – Set BEEP Generator (Verb ID= 70Ah)
Set Command Format Codec Response Format
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
CAd=X Node ID=01h Verb ID=71Bh Divider [7:0] 0’s for all nodes
‘Divider’ in Set Command
Bit Description
31:8 Reserved.
7:0 Frequency Divider, F[7:0].
The internal BEEP frequency is the result of dividing the 48kHz clock by 4 times the number specified in
F[7:0].
The lowest tone is 48kHz/(255*4)=47Hz. The highest tone is 48kHz/(1*4)=12kHz.
A value of 00h in F[7:0] disables the internal BEEP generator and allows external PCBEEP input.
Note: All nodes except BEEP generator (NID=01h) will ignore this verb.
0: The corresponding GPIO pin is disabled and is in Hi-Z state
1: The corresponding GPIO pin is enabled. Its behavior is determined by the GPIO direction control
Note: All nodes except Audio Function Group (NID=01h) will ignore this verb.
Codec Response for Other NID
Bit Description
31:0 0’s.
Datasheet
8.33. Verb – Set GPIO Enable Mask (Verb ID=716h)
Table 68. Verb – Set GPIO Enable Mask (Verb ID=716h)
Set Command Format Codec Response Format
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
CAd=X Node ID=01h Verb ID=716h Enable Mask [7:0] 0’s for all nodes
Codec Response for NID=01h (Audio Function Group)
Bit Description
31:2 Reserved.
1:0 GPIO[1:0] Enable Mask.
0: The corresponding GPIO pin is disabled and is in Hi-Z state
1: The corresponding GPIO pin is enabled. Its behavior is determined by the GPIO direction control
Note: All nodes except Audio Function Group (NID=01h) will ignore this verb.
Bit [31:28] Bit [27:20] Bit [19:8] Payload Bit [7:0] Response [31:0]
CAd=X Node ID=01h Verb ID=719h UnsolEnable [7:0] 0’s for all nodes
Codec Response for NID=01h (Audio Function Group)
Bit Description
31:2 Reserved.
1:0 GPIO[1:0] Unsolicited Enable Mask.
0: Unsolicited response will not be sent on link
1: Unsolicited response will be sent on link when state of corresponding GPIO has been changed
Note 1: All nodes except the Audio Function Group (NID=01h) will ignore this verb.
Note 2: The unsolicited response of corresponding GPIO is enabled when it’s ‘Enable Mask’ and Verb-‘Unsolicited
Digital Power for Core
Digital Power for HDA Link
Analog
Ambient Operating Temperature Ta 0 - +70
Storage Temperature Ts - - +125
Susceptibility Voltage
Digital Pins 3500V
Analog Pins 4000V
*: The digital link power DVDD-IO must be lower than the digital core power DVDD.
**: The standard testing condition before shipping is AVDD = 5.0V unless specified. Customers designing with a different
AVDD should contact Realtek technical support representatives for special testing support.
The ALC662 series is fully pin to pin compatible with the ALC88x series. Please contact Realtek to get
the latest application circuits. To get the best compatibility in hardware design and software driver, any
modifications should be confirmed by Realtek. Realtek may update the latest application circuits onto our
website (www.realtek.com) without modifying this data sheet.
10.1. Filter Connection
Resistors placed
beside onboad
front panel header
Front panel header option-1
FRONT-IO-JD
R2 is for SIDE Output
not required for ALC662
20K,1%
Front panel header option-2
LINE2-JD
MIC2-JD
FRONT-IO-JD
R2
5.1K,1% (NC)
CEN-JD
C21
10u
R3
10K,1%
+5VA
+
SURR-LMIC1-R
SURR-R
R6
CEN
LFE
SIDESURR-L
SIDESURR-R
EAPD
S/PDIF-OUT
+3.3VD
GPIO0
GPIO1
C34
10u
37
38
39
40
41
42
43
44
45
46
47
48
FRONT-L
FRONT-R
32
33
34
35
36
NC
Sense B
FRONT-L
FRONT-R
NC
AVDD2
SURR-L
JDREF
SURR-R
AVSS2
CENTER
LFE
NC
NC
EAPD
SPDIFO
DVDD
1234567891011
+
GPIO0
GPIO1
DVSS
ALC662
MIC1-VREFO-R
SDATA-OUT
C17 10u
28
29
30
31
NC
MIC2-VREFO
LINE2-VREFO
BIT-CLK
C40
22P
DVSS
SDATA-IN
R16
22
R17 22
MIC1-VREFO-L
DVDD-IO
Figure 17. Filter Connection
MIC1-VREFOR
LINE2-VREFO
+
26
27
VREF
AVSS1
SYNC
RESET#
MIC2-VREFO
MIC1-VREFOL
25
AVDD1
LINE1-R
LINE1-L
MIC1-R
MIC1-L
CD-R
CD-GND
CD-L
MIC2-R
MIC2-L
LINE2-R
LINE2-L
Sense A
PCBEEP
12
C331u
RESET#
SYNC
SDIN
BCLK
SDOUT
+5VA
+
C18
10u
U2
C36
100P
LINE1-R
LINE1-L
MIC1-L
MIC2-R
MIC2-L
LINE2-R
LINE2-L
R13 10K
R15
1K
R7
R8
R9
R10
CD-IN Header
5.1K,1%
10K,1%
20K,1%
39.2K,1%
Ext. PCBEEP
4
3
2
1
J1
FRONT-JD
LINE1-JD
MIC1-JD
SURR-JD
FRONT-JD
LINE1-JD
MIC1-JD
SURR-JD
24
23
22
21
C261u
20
C291u
19
C321u
18
17
16
15
14
13
AGNDDGND
Tied at one point only under the
codec or near the codec
ALC662-VC0-GR ALC662 Version C Stepping 0 Silicon, LQFP-48 ‘Green’ Package Production
ALC662-VC1-GR ALC662 Version C Stepping 1 Silicon, LQFP-48 ‘Green’ Package Production
Note 1: See page 6 for Green package and version identification.
Note 2: Above parts are tested under AVDD=5.0V. If customers have lower AVDD request, please contact Realtek sales
representatives or agents.
Realtek Semiconductor Corp.
Headquarters
No. 2, Innovation Road II
Hsinchu Science Park, Hsinchu 300, Taiwan
Tel.: +886-3-578-0211. Fax: +886-3-577-6047
www.realtek.com