blob: de7eb2a6604ae89e4358549a7b232bb622ad7355 [file] [log] [blame]
Takashi Iwaic9746ee2016-11-10 22:23:58 +01001=====================
Liam Girdwoodeb1a6af2006-10-06 18:34:51 +02002Audio Pops and Clicks
3=====================
4
5Pops and clicks are unwanted audio artifacts caused by the powering up and down
Matt LaPlante01dd2fb2007-10-20 01:34:40 +02006of components within the audio subsystem. This is noticeable on PCs when an
Liam Girdwood10b98522007-02-08 17:06:09 +01007audio module is either loaded or unloaded (at module load time the sound card is
Liam Girdwoodeb1a6af2006-10-06 18:34:51 +02008powered up and causes a popping noise on the speakers).
9
Liam Girdwood10b98522007-02-08 17:06:09 +010010Pops and clicks can be more frequent on portable systems with DAPM. This is
11because the components within the subsystem are being dynamically powered
12depending on the audio usage and this can subsequently cause a small pop or
13click every time a component power state is changed.
Liam Girdwoodeb1a6af2006-10-06 18:34:51 +020014
15
16Minimising Playback Pops and Clicks
17===================================
18
Mark Brown7c4dbbd2008-01-23 08:41:46 +010019Playback pops in portable audio subsystems cannot be completely eliminated
20currently, however future audio codec hardware will have better pop and click
21suppression. Pops can be reduced within playback by powering the audio
22components in a specific order. This order is different for startup and
23shutdown and follows some basic rules:-
Takashi Iwaic9746ee2016-11-10 22:23:58 +010024::
Liam Girdwoodeb1a6af2006-10-06 18:34:51 +020025
Takashi Iwaic9746ee2016-11-10 22:23:58 +010026 Startup Order :- DAC --> Mixers --> Output PGA --> Digital Unmute
27
28 Shutdown Order :- Digital Mute --> Output PGA --> Mixers --> DAC
Liam Girdwoodeb1a6af2006-10-06 18:34:51 +020029
30This assumes that the codec PCM output path from the DAC is via a mixer and then
31a PGA (programmable gain amplifier) before being output to the speakers.
32
33
34Minimising Capture Pops and Clicks
35==================================
36
37Capture artifacts are somewhat easier to get rid as we can delay activating the
Matt LaPlante01dd2fb2007-10-20 01:34:40 +020038ADC until all the pops have occurred. This follows similar power rules to
Liam Girdwoodeb1a6af2006-10-06 18:34:51 +020039playback in that components are powered in a sequence depending upon stream
40startup or shutdown.
Takashi Iwaic9746ee2016-11-10 22:23:58 +010041::
Liam Girdwoodeb1a6af2006-10-06 18:34:51 +020042
Takashi Iwaic9746ee2016-11-10 22:23:58 +010043 Startup Order - Input PGA --> Mixers --> ADC
44
45 Shutdown Order - ADC --> Mixers --> Input PGA
Liam Girdwoodeb1a6af2006-10-06 18:34:51 +020046
47
48Zipper Noise
49============
50An unwanted zipper noise can occur within the audio playback or capture stream
51when a volume control is changed near its maximum gain value. The zipper noise
52is heard when the gain increase or decrease changes the mean audio signal
53amplitude too quickly. It can be minimised by enabling the zero cross setting
54for each volume control. The ZC forces the gain change to occur when the signal
55crosses the zero amplitude line.