From: Mark Brown Date: Tue, 10 Apr 2012 12:57:46 +0000 (+0100) Subject: ASoC: dapm: Allow DAI widgets to be routed through X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1eee1b3833d67eb52c0f4d293cbb796a776c5eed;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Liam Girdwood --- 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) { DAPM_UPDATE_STAT(w, power_checks); - return w->active; + if (w->active) + return w->active; + + return dapm_generic_check_power(w); } /* Check to see if an ADC has power */