]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - sound/pci/hda/hda_intel.c
ALSA: hda - Replace bus pm_notify with the standard runtime PM framework
authorTakashi Iwai <tiwai@suse.de>
Thu, 19 Feb 2015 16:35:32 +0000 (17:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Feb 2015 14:37:02 +0000 (15:37 +0100)
commit55ed9cd1feee80764937913afe760161b86cfb11
treed5e76b6e55acce0fcc32c4cf3fcd5f617c20b6d6
parentbb573928e187fc5b1f91c3a7684791d5dfcca640
ALSA: hda - Replace bus pm_notify with the standard runtime PM framework

Now the final bit of runtime PM cleanup: instead of manual
notification of the power up/down of the codec via hda_bus pm_notify
ops, use the standard runtime PM feature.

The child codec device will kick off the runtime PM of the parent
(PCI) device upon suspend/resume automatically.  For managing whether
the link can be really turned off, we use the bit flags
bus->codec_powered instead of the earlier bus->power_keep_link_on.
flag.  Each codec driver is responsible to set/clear the bit flag, and
the controller device can be turned off only when all these bits are
cleared.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_intel.c
sound/pci/hda/patch_sigmatel.c