From: Takashi Iwai Date: Thu, 19 Feb 2015 16:35:32 +0000 (+0100) Subject: ALSA: hda - Replace bus pm_notify with the standard runtime PM framework X-Git-Tag: omap-for-v4.2/o2_dc~120^2~6^2~43^2~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55ed9cd1feee80764937913afe760161b86cfb11;p=pandora-kernel.git 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 --- Reading git-diff-tree failed