Skip to content

Commit

Permalink
ALSA: pcmcia: Remove superfluous snd_pcm_suspend*() calls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tiwai committed Jan 15, 2019
1 parent 793e0fc commit 9833f1d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/pcmcia/pdaudiocf/pdaudiocf_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9833f1d

Please sign in to comment.