]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: pcmcia: Remove superfluous snd_pcm_suspend*() calls
authorTakashi Iwai <tiwai@suse.de>
Fri, 11 Jan 2019 17:04:19 +0000 (18:04 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2019 16:48:04 +0000 (17:48 +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/pcmcia/pdaudiocf/pdaudiocf_core.c

index d724ab0653cfcd9eee87d87299653f860583bf3c..eabf2925289529a62fceed0274443e1b572ca2d7 100644 (file)
@@ -265,7 +265,6 @@ int snd_pdacf_suspend(struct snd_pdacf *chip)
        u16 val;
        
        snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot);
-       snd_pcm_suspend_all(chip->pcm);
        /* disable interrupts, but use direct write to preserve old register value in chip->regmap */
        val = inw(chip->port + PDAUDIOCF_REG_IER);
        val &= ~(PDAUDIOCF_IRQOVREN|PDAUDIOCF_IRQAKMEN|PDAUDIOCF_IRQLVLEN0|PDAUDIOCF_IRQLVLEN1);