wm8961 Wolfson Microelectronics plc, wm8961 Datasheet - Page 112

no-image

wm8961

Manufacturer Part Number
wm8961
Description
Ultra-low Power Stereo Codec With 1w Stereo Class D Speaker Drivers And Ground Referenced Headphone Drivers
Manufacturer
Wolfson Microelectronics plc
Datasheet
WM8961
w
Table 69 Register Settings for DAC to Speaker and headphone Outputs
The above configuration enables the speaker and the headphone outputs.
SWITCHING BETWEEN HEADPHONE AND SPEAKERS
With DAC to speaker and headphone playback enabled, switching between headphone and speaker
outputs should be done using the PGA and mute bits as shown in Table 70 and Table 71. This
achieves best pop-click performance.
To save power, it may also be desirable to apply power management settings in addition to the
settings shown, however note that disabled PGAs leave a resistive path hence do not achieve the
published mute attenuation specifications.
Table 70 Switching from Headphone playback to Speaker Playback
Allow enough time for the sequencer to finish
0x5A - write
0x1A - write
REGISTER
0x0F - write
0x0F - read
0x08 - write
0x52 - write
0x57 - write
0x5D - read
0x33 - write
0x31 - write
0x28 - write
0x29 - write
0x29 - write
0x02 - write
0x03 - write
0x28 - write
0x29 - write
SETTING
0x01FC
0x00C0
0x0000
0x01F4
0x0003
0x0020
0x0080
0x0001
0x0079
0x0079
0x0179
0x012F
0x012F
0x0079
0x0179
-
-
Reset device if required
Read Chip ID (=0x1801)
Enable system clocks
Headphone Class W power switching
Enable the write sequencer, DAC to headphone
playback with -20dB volume setting.
Start the write sequencer to configure pre-programmed
enable of the DAC playback (digital input to headphone
output) path. Analogue input PGAs still muted.
Read status of write sequencer and wait until the
WSEQ_BUSY,bit0,=0 which indicates that the DAC
playback path has been configured. Then continue.
Enable the Speaker PGAs, SPKL_PGA and SPKR_PGA
Program the CLASSD_ACGAIN to x1.5
Enable the speakers SPKR_ENA and SPKL_ENA
Set the left speaker volume SPKLVOL to 0dB (which
defaults to mute), change on zero cross only
Set the right speaker volume SPKRVOL to 0dB (which
defaults to mute), change on zero cross only
Update speaker volume SPKVU
Headphone L mute
Headphone R mute
Set the left speaker volume SPKRVOL to 0dB
Set the right speaker volume to 0dB and update speaker
volume SPKVU
COMMENT
PP, August 2009, Rev 3.1
Pre-Production
112

Related parts for wm8961