ALSA: atiixp: Move PCM suspend/resume code into trigger callback
authorTakashi Iwai <tiwai@suse.de>
Fri, 11 Jan 2019 16:57:29 +0000 (17:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2019 16:46:50 +0000 (17:46 +0100)
commit435e25c67de7e0a21fbb32239bded0cefc488e20
tree0eed5310931c65feec035dbae2aa9e2bbd322204
parent3d21ef0b49f84d3341984caafc5c658739674927
ALSA: atiixp: Move PCM suspend/resume code into trigger callback

ATIIXP driver supports the full PCM resume and saves/restores the
running PCM pointer.  This used to be done in the suspend and resume
callbacks together with snd_pcm_suspend() call.  But since we moved
the snd_pcm_supsend*() call in PCM device PM ops, this should be moved
to a more appropriate place, i.e. the trigger callback.

Along with the movement of the PCM suspend/resume code, remove the
superfluous snd_pcm_suspend_all() call, too.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/atiixp.c