Skip to content

Commit

Permalink
ASoC: dapm: Allow DAI widgets to be routed through
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Apr 16, 2012
1 parent 04570c6 commit 1eee1b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 1eee1b3

Please sign in to comment.