Commit 2c767068 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: usb: 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 17bc4815
...@@ -811,7 +811,6 @@ static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message) ...@@ -811,7 +811,6 @@ static int usb_audio_suspend(struct usb_interface *intf, pm_message_t message)
snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot); snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot);
if (!chip->num_suspended_intf++) { if (!chip->num_suspended_intf++) {
list_for_each_entry(as, &chip->pcm_list, list) { list_for_each_entry(as, &chip->pcm_list, list) {
snd_pcm_suspend_all(as->pcm);
snd_usb_pcm_suspend(as); snd_usb_pcm_suspend(as);
as->substream[0].need_setup_ep = as->substream[0].need_setup_ep =
as->substream[1].need_setup_ep = true; as->substream[1].need_setup_ep = true;
......
...@@ -849,10 +849,8 @@ int line6_suspend(struct usb_interface *interface, pm_message_t message) ...@@ -849,10 +849,8 @@ int line6_suspend(struct usb_interface *interface, pm_message_t message)
if (line6->properties->capabilities & LINE6_CAP_CONTROL) if (line6->properties->capabilities & LINE6_CAP_CONTROL)
line6_stop_listen(line6); line6_stop_listen(line6);
if (line6pcm != NULL) { if (line6pcm != NULL)
snd_pcm_suspend_all(line6pcm->pcm);
line6pcm->flags = 0; line6pcm->flags = 0;
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment