]> rtime.felk.cvut.cz Git - can-eth-gw-linux.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)
commit618dae11f809aaccd05710aa8cee8c46a9cef1a7
tree99c882f9657b492bc2b721e36e82831efb1b66ca
parentf86dcef87b771935c223334324a93c1d71f7a84c
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