ASoC: dapm: Treat DAI widgets like AIF widgets for power
authorMark Brown <broonie@linaro.org>
Wed, 5 Jun 2013 18:36:11 +0000 (19:36 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 7 Jun 2013 14:54:50 +0000 (15:54 +0100)
commit4616274d3382fa7698536d61b351e63cf0ce27f0
tree8e95ffc206ad5f33eacfd19539e4ba0b16b48f25
parent056790923e1c4eed5d8cc502e1092944a2b23025
ASoC: dapm: Treat DAI widgets like AIF widgets for power

Even though they are virtual widgets DAI widgets still get counted for the
DAPM context power management so we can't just use the active state to
check if they should be powered as they may not be part of a complete path.

Instead split them into input and output widgets and do the same power
checks as we perform on AIFs.

Reported-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c
sound/soc/soc-pcm.c