diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-01-11 12:04:10 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-01-15 11:47:58 -0500 |
commit | 793e0fca25fa756884851e445da11bae8099c09c (patch) | |
tree | dbdd64b69c516cc1ef558b6f4cf5333dffb5a2b2 | |
parent | d3bdf3f37ac39ed803535171e4d7208f48bf36fe (diff) |
ALSA: arm: Remove superfluous snd_pcm_suspend*() calls
The call of snd_pcm_suspend_all() & co became superfluous since we
call it in the PCM PM ops. Let's remove them.
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/arm/aaci.c | 1 | ||||
-rw-r--r-- | sound/arm/pxa2xx-ac97.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index 0114ffed56dd..0c3f073e2600 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c | |||
@@ -757,7 +757,6 @@ static int aaci_do_suspend(struct snd_card *card) | |||
757 | { | 757 | { |
758 | struct aaci *aaci = card->private_data; | 758 | struct aaci *aaci = card->private_data; |
759 | snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); | 759 | snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); |
760 | snd_pcm_suspend_all(aaci->pcm); | ||
761 | return 0; | 760 | return 0; |
762 | } | 761 | } |
763 | 762 | ||
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c index 1f72672262d0..68fe5bb11eea 100644 --- a/sound/arm/pxa2xx-ac97.c +++ b/sound/arm/pxa2xx-ac97.c | |||
@@ -124,7 +124,6 @@ static int pxa2xx_ac97_do_suspend(struct snd_card *card) | |||
124 | pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; | 124 | pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; |
125 | 125 | ||
126 | snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); | 126 | snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); |
127 | snd_pcm_suspend_all(pxa2xx_ac97_pcm); | ||
128 | snd_ac97_suspend(pxa2xx_ac97_ac97); | 127 | snd_ac97_suspend(pxa2xx_ac97_ac97); |
129 | if (platform_ops && platform_ops->suspend) | 128 | if (platform_ops && platform_ops->suspend) |
130 | platform_ops->suspend(platform_ops->priv); | 129 | platform_ops->suspend(platform_ops->priv); |