Skip to content

Commit

Permalink
ALSA: drivers: 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
Takashi Iwai committed Jan 15, 2019
1 parent 28394f0 commit 3c40dfe
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions sound/drivers/aloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,12 +1200,8 @@ static int loopback_remove(struct platform_device *devptr)
static int loopback_suspend(struct device *pdev)
{
struct snd_card *card = dev_get_drvdata(pdev);
struct loopback *loopback = card->private_data;

snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);

snd_pcm_suspend_all(loopback->pcm[0]);
snd_pcm_suspend_all(loopback->pcm[1]);
return 0;
}

Expand Down
2 changes: 0 additions & 2 deletions sound/drivers/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1138,10 +1138,8 @@ static int snd_dummy_remove(struct platform_device *devptr)
static int snd_dummy_suspend(struct device *pdev)
{
struct snd_card *card = dev_get_drvdata(pdev);
struct snd_dummy *dummy = card->private_data;

snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
snd_pcm_suspend_all(dummy->pcm);
return 0;
}

Expand Down
1 change: 0 additions & 1 deletion sound/drivers/pcsp/pcsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ static int pcsp_suspend(struct device *dev)
{
struct snd_pcsp *chip = dev_get_drvdata(dev);
pcsp_stop_beep(chip);
snd_pcm_suspend_all(chip->pcm);
return 0;
}

Expand Down
4 changes: 0 additions & 4 deletions sound/drivers/vx/vx_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,12 +732,8 @@ EXPORT_SYMBOL(snd_vx_dsp_load);
*/
int snd_vx_suspend(struct vx_core *chip)
{
unsigned int i;

snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot);
chip->chip_status |= VX_STAT_IN_SUSPEND;
for (i = 0; i < chip->hw->num_codecs; i++)
snd_pcm_suspend_all(chip->pcm[i]);

return 0;
}
Expand Down

0 comments on commit 3c40dfe

Please sign in to comment.