ALSA: hda: Re-add dropped snd_poewr_change_state() calls
authorTakashi Iwai <tiwai@suse.de>
Mon, 29 Mar 2021 11:30:58 +0000 (13:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Apr 2021 13:00:09 +0000 (15:00 +0200)
commitb3116cda4e523031eee24e9ea727308ee2dbbdb2
treef4b312eb4e3c53541de55eb83001a37ad36feef0
parent474d3d65784e3e93bf44e7b12e489304ec8a1e0e
ALSA: hda: Re-add dropped snd_poewr_change_state() calls

commit c8f79808cd8eb5bc8d14de129bd6d586d3fce0aa upstream.

The card power state change via snd_power_change_state() at the system
suspend/resume seems dropped mistakenly during the PM code rewrite.
The card power state doesn't play much role nowadays but it's still
referred in a few places such as the HDMI codec driver.

This patch restores them, but in a more appropriate place now in the
prepare and complete callbacks.

Fixes: f5dac54d9d93 ("ALSA: hda: Separate runtime and system suspend")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210329113059.25035-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_intel.c