]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Add weak routes for sidetone style paths
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 13 Jun 2011 15:42:29 +0000 (16:42 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 13 Jun 2011 17:59:33 +0000 (18:59 +0100)
commit1ae5da6dd707bd916daf1136b7214bd2c78fa4c9
tree666892dd62a26bf38733d79386b5c5909c896b93
parent1a7275e2226d9d6968fa52e66ec3e97f36fcba5f
ASoC: Add weak routes for sidetone style paths

Normally DAPM will power up any connected audio path. This is not ideal
for sidetone paths as with sidetone paths the audio path is not wanted in
itself, it is only desired if the two paths it provides a sidetone between
are both active. If the sidetone path causes a power up then it can be
hard to minimise pops as we first power up either the sidetone or the main
output path and then power the other, with the second power up potentially
introducing a DC offset.

Address this by introducing the concept of a weak path. If a path is marked
as weak then DAPM will ignore that path when walking the graph, though all
the relevant controls are still available to the application layer to allow
these paths to be configured.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c