diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-02-19 17:35:32 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-26 15:37:02 +0100 |
commit | 55ed9cd1feee80764937913afe760161b86cfb11 (patch) | |
tree | d5e76b6e55acce0fcc32c4cf3fcd5f617c20b6d6 /sound/pci/hda/patch_sigmatel.c | |
parent | bb573928e187fc5b1f91c3a7684791d5dfcca640 (diff) | |
download | linux-stable-55ed9cd1feee80764937913afe760161b86cfb11.tar.gz linux-stable-55ed9cd1feee80764937913afe760161b86cfb11.tar.bz2 linux-stable-55ed9cd1feee80764937913afe760161b86cfb11.zip |
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>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 6a2163056216..2956a6ba6bf0 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -2132,8 +2132,10 @@ static void stac92hd83xxx_fixup_hp_mic_led(struct hda_codec *codec, if (action == HDA_FIXUP_ACT_PRE_PROBE) { spec->mic_mute_led_gpio = 0x08; /* GPIO3 */ +#ifdef CONFIG_PM /* resetting controller clears GPIO, so we need to keep on */ - codec->bus->power_keep_link_on = 1; + codec->d3_stop_clk = 0; +#endif } } |