diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-10-25 19:42:01 +0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-28 03:19:59 +0300 |
commit | 8be4da29cf5b8ec65e974c36e7ae4d90b381ac5e (patch) | |
tree | 1b2fc6fd4bf6d3190cd23d53fff77ddb019e55d8 /include/sound | |
parent | c1862c8bae520a8986dd7c47ce33f16eb7c791c2 (diff) | |
download | linux-8be4da29cf5b8ec65e974c36e7ae4d90b381ac5e.tar.xz |
ASoC: dapm: Mark endpoints instead of IO widgets dirty during suspend/resume
The state of endpoint widgets is affected by that card's power state.
Endpoint widgets that do no have the ignore_suspend flag set will be
considered inactive during suspend. So they have to be re-checked and marked
dirty after the card's power state changes. Currently the input and output
widgets are marked dirty instead, this works most of the time since
typically a path from one endpoint to another will go via a input or output
widget. But marking the endpoints dirty is technically more correct and will
also work for odd corner cases.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dapm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index e7ebeb717482..43ca1656dab4 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -435,7 +435,7 @@ void snd_soc_dapm_auto_nc_pins(struct snd_soc_card *card); unsigned int dapm_kcontrol_get_value(const struct snd_kcontrol *kcontrol); /* Mostly internal - should not normally be used */ -void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); +void dapm_mark_endpoints_dirty(struct snd_soc_card *card); /* dapm path query */ int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream, |