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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Mar 2021 11:16:22 +0000 (13:16 +0200)
commitc8f79808cd8eb5bc8d14de129bd6d586d3fce0aa
treec2fb592b87ad7a817b85fb54f0f26cf3513a326b
parent625bd5a616ceda4840cd28f82e957c8ced394b6a
ALSA: hda: Re-add dropped snd_poewr_change_state() calls

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>
sound/pci/hda/hda_intel.c