]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dpcm: Add runtime dynamic route update
authorLiam Girdwood <lrg@ti.com>
Wed, 25 Apr 2012 11:12:51 +0000 (12:12 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 26 Apr 2012 16:48:19 +0000 (17:48 +0100)
commit0be8183110f45441cf720ac319fd7a99408f9ada
tree99c882f9657b492bc2b721e36e82831efb1b66ca
parent3af640c005827574ae003e354ab44c7337f0b7da
ASoC: dpcm: Add runtime dynamic route update

This patch allows DPCM to dynamically alter the FE to BE PCM links
at runtime based on mixer setting updates. DAPM is looked up after
every mixer update and we perform a DPCM runtime update if the
mixer has a change of value.

This patchs adds/changes the following :-

 o Adds DPCM runtime update core.
 o Changes soc_dapm_mixer_update_power() and soc_dapm_mux_update_power()
   to return if a change has occured rather than 0. No other users check
   atm.

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