]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ALSA: arm: Remove superfluous snd_pcm_suspend*() calls
authorTakashi Iwai <tiwai@suse.de>
Fri, 11 Jan 2019 17:04:10 +0000 (18:04 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2019 16:47:58 +0000 (17:47 +0100)
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>
sound/arm/aaci.c
sound/arm/pxa2xx-ac97.c

index 0114ffed56dd4d2655d89e950774869dc2780d05..0c3f073e2600eb51d723f8f9aca40c0e8d04129b 100644 (file)
@@ -757,7 +757,6 @@ static int aaci_do_suspend(struct snd_card *card)
 {
        struct aaci *aaci = card->private_data;
        snd_power_change_state(card, SNDRV_CTL_POWER_D3cold);
-       snd_pcm_suspend_all(aaci->pcm);
        return 0;
 }
 
index 1f72672262d06406d21ea4fc00c400fac24fd94b..68fe5bb11eea69f68b5609fcb293615644fd64ae 100644 (file)
@@ -124,7 +124,6 @@ static int pxa2xx_ac97_do_suspend(struct snd_card *card)
        pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data;
 
        snd_power_change_state(card, SNDRV_CTL_POWER_D3cold);
-       snd_pcm_suspend_all(pxa2xx_ac97_pcm);
        snd_ac97_suspend(pxa2xx_ac97_ac97);
        if (platform_ops && platform_ops->suspend)
                platform_ops->suspend(platform_ops->priv);