ALSA: hda: Release codec display power during shutdown/reboot
authorImre Deak <imre.deak@intel.com>
Wed, 23 Jun 2021 13:46:01 +0000 (16:46 +0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Jun 2021 14:28:27 +0000 (16:28 +0200)
commit3099406ef4832124ce572cfbbc914e8a385ca38f
treed2fd132839e6d6e632e164e542d599d7485eb786
parent472e18f63c425dda97b888f40f858ea54e3efc17
ALSA: hda: Release codec display power during shutdown/reboot

Similarly to the previous patch for the HDA controller make sure here
that codecs also drop the display power reference during shutdown and
reboot.

This fixes a power ref leaked WARN in i915 during shutdown if the HDA
driver is built with CONFIG_PM=n.

Suggested-by: Takashi Iwai <tiwai@suse.de>
References: https://gitlab.freedesktop.org/drm/intel/-/issues/3618
References: https://lore.kernel.org/intel-gfx/s5hzgvhngw6.wl-tiwai@suse.de
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20210623134601.2128663-2-imre.deak@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_bind.c
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_local.h