]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1299ae10e76562be6cd2178c6a7c65946a6acf03
tree8e95ffc206ad5f33eacfd19539e4ba0b16b48f25
parent723288b79b2fff1e3f2233329e92d10da683efed
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