diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-03-30 15:04:50 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-01 16:28:04 -0400 |
commit | 37660b6daf6d28bb2206c95ec75c8063f2db1606 (patch) | |
tree | 992635c025c2be8b7f120b3a441d071fd738eb8d | |
parent | a1f0b9674936bf55d5d49813de01547de2667690 (diff) |
ASoC: Remove suspend_bias_level from DAPM context struct
The only two users of the suspend_bias_level field were two rather old
drivers which weren't exactly doing things by the book. Those drivers have
been updated and field is now unused and can be removed.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | include/sound/soc-dapm.h | 1 | ||||
-rw-r--r-- | sound/soc/soc-core.c | 10 |
2 files changed, 2 insertions, 9 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 8d7416e46861..9e35203653ff 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -586,7 +586,6 @@ struct snd_soc_dapm_update { | |||
586 | /* DAPM context */ | 586 | /* DAPM context */ |
587 | struct snd_soc_dapm_context { | 587 | struct snd_soc_dapm_context { |
588 | enum snd_soc_bias_level bias_level; | 588 | enum snd_soc_bias_level bias_level; |
589 | enum snd_soc_bias_level suspend_bias_level; | ||
590 | struct delayed_work delayed_work; | 589 | struct delayed_work delayed_work; |
591 | unsigned int idle_bias_off:1; /* Use BIAS_OFF instead of STANDBY */ | 590 | unsigned int idle_bias_off:1; /* Use BIAS_OFF instead of STANDBY */ |
592 | /* Go to BIAS_OFF in suspend if the DAPM context is idle */ | 591 | /* Go to BIAS_OFF in suspend if the DAPM context is idle */ |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 30579ca5bacb..72601a86a748 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -583,15 +583,9 @@ int snd_soc_suspend(struct device *dev) | |||
583 | cpu_dai->driver->suspend(cpu_dai); | 583 | cpu_dai->driver->suspend(cpu_dai); |
584 | } | 584 | } |
585 | 585 | ||
586 | /* close any waiting streams and save state */ | 586 | /* close any waiting streams */ |
587 | for (i = 0; i < card->num_rtd; i++) { | 587 | for (i = 0; i < card->num_rtd; i++) |
588 | struct snd_soc_dai **codec_dais = card->rtd[i].codec_dais; | ||
589 | flush_delayed_work(&card->rtd[i].delayed_work); | 588 | flush_delayed_work(&card->rtd[i].delayed_work); |
590 | for (j = 0; j < card->rtd[i].num_codecs; j++) { | ||
591 | codec_dais[j]->codec->dapm.suspend_bias_level = | ||
592 | codec_dais[j]->codec->dapm.bias_level; | ||
593 | } | ||
594 | } | ||
595 | 589 | ||
596 | for (i = 0; i < card->num_rtd; i++) { | 590 | for (i = 0; i < card->num_rtd; i++) { |
597 | 591 | ||