]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit837f7d68c2d16045373d8624490d0a5e99a675bf
tree42a72072724fdff4078625498d3e7933b2448aff
parent85e3609b8f96990fcdeafee8cdf451bbdb463314
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