Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17bc4815 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: pci: 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: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3c40dfeb
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1882,10 +1882,8 @@ static int ali_suspend(struct device *dev)
		return 0;

	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
	for (i = 0; i < chip->num_of_codecs; i++) {
		snd_pcm_suspend_all(chip->pcm[i]);
	for (i = 0; i < chip->num_of_codecs; i++)
		snd_ac97_suspend(chip->ac97[i]);
	}

	spin_lock_irq(&chip->reg_lock);
	
+0 −1
Original line number Diff line number Diff line
@@ -731,7 +731,6 @@ static int snd_als300_suspend(struct device *dev)
	struct snd_als300 *chip = card->private_data;

	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
	snd_pcm_suspend_all(chip->pcm);
	snd_ac97_suspend(chip->ac97);
	return 0;
}
+0 −1
Original line number Diff line number Diff line
@@ -994,7 +994,6 @@ static int snd_als4000_suspend(struct device *dev)

	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
	
	snd_pcm_suspend_all(chip->pcm);
	snd_sbmixer_suspend(chip);
	return 0;
}
+0 −2
Original line number Diff line number Diff line
@@ -1125,8 +1125,6 @@ static int snd_atiixp_suspend(struct device *dev)
	int i;

	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
	for (i = 0; i < NUM_ATI_PCMDEVS; i++)
		snd_pcm_suspend_all(chip->pcmdevs[i]);
	for (i = 0; i < NUM_ATI_CODECS; i++)
		snd_ac97_suspend(chip->ac97[i]);
	snd_atiixp_aclink_down(chip);
+0 −4
Original line number Diff line number Diff line
@@ -2699,10 +2699,6 @@ snd_azf3328_suspend(struct device *dev)

	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);

	/* same pcm object for playback/capture */
	snd_pcm_suspend_all(chip->pcm[AZF_CODEC_PLAYBACK]);
	snd_pcm_suspend_all(chip->pcm[AZF_CODEC_I2S_OUT]);

	snd_azf3328_suspend_ac97(chip);

	snd_azf3328_suspend_regs(chip, chip->ctrl_io,
Loading