diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-05 20:36:11 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-07 16:54:50 +0200 |
commit | 4616274d3382fa7698536d61b351e63cf0ce27f0 (patch) | |
tree | 8e95ffc206ad5f33eacfd19539e4ba0b16b48f25 /include | |
parent | ASoC: pcm: Require both CODEC and CPU support when declaring stream caps (diff) | |
download | linux-4616274d3382fa7698536d61b351e63cf0ce27f0.tar.xz linux-4616274d3382fa7698536d61b351e63cf0ce27f0.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc-dapm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index d4609029f014..385c6329a967 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -450,7 +450,8 @@ enum snd_soc_dapm_type { snd_soc_dapm_aif_in, /* audio interface input */ snd_soc_dapm_aif_out, /* audio interface output */ snd_soc_dapm_siggen, /* signal generator */ - snd_soc_dapm_dai, /* link to DAI structure */ + snd_soc_dapm_dai_in, /* link to DAI structure */ + snd_soc_dapm_dai_out, snd_soc_dapm_dai_link, /* link between two DAI structures */ }; |