diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-10 08:57:46 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-16 14:36:29 -0400 |
commit | 1eee1b3833d67eb52c0f4d293cbb796a776c5eed (patch) | |
tree | cce8952552bde1f417fab6c759a4434f97e98f18 /sound/soc/soc-dapm.c | |
parent | 04570c628fbd5ede85d87a0b81bd19df7b13bbc4 (diff) |
ASoC: dapm: Allow DAI widgets to be routed through
In order to allow CODEC<->CODEC links to function we will need to allow
DAPM paths to be created that pass through DAIs rather than only ones
that are source or sunk at the DAI.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index c92c537d6be8..bda29ccf88f4 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -923,7 +923,10 @@ static int dapm_dai_check_power(struct snd_soc_dapm_widget *w) | |||
923 | { | 923 | { |
924 | DAPM_UPDATE_STAT(w, power_checks); | 924 | DAPM_UPDATE_STAT(w, power_checks); |
925 | 925 | ||
926 | return w->active; | 926 | if (w->active) |
927 | return w->active; | ||
928 | |||
929 | return dapm_generic_check_power(w); | ||
927 | } | 930 | } |
928 | 931 | ||
929 | /* Check to see if an ADC has power */ | 932 | /* Check to see if an ADC has power */ |