OSDN Git Service

ASoC: da7219: Add delays to capture path to remove DC offset noise
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Thu, 9 Aug 2018 09:48:50 +0000 (10:48 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Aug 2018 09:50:14 +0000 (10:50 +0100)
commit17c81d2f5a59929c73a2a19fd49fe0b068fda76f
tree42a72072724fdff4078625498d3e7933b2448aff
parent605391d0f4bfdff2f2c6c5477ce0ccf776d8d5c0
ASoC: da7219: Add delays to capture path to remove DC offset noise

On some platforms it has been noted that a pop noise can be
witnessed when capturing audio, mainly for first time after a
headset jack has been inserted. This is due to a DC offset in the
Mic PGA and so to avoid this delays are required when powering
up the capture path.

This commit rectifies the problem by adding delays post Mic PGA and
post Mixin PGA. The post Mic PGA delay is determined based on
Mic Bias voltage, and is only applied the first time after a
headset jack is inserted.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219-aad.c
sound/soc/codecs/da7219.c
sound/soc/codecs/da7219.h