]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Yet another fix for D3 stop-clock refcounting
authorTakashi Iwai <tiwai@suse.de>
Fri, 31 Aug 2012 14:46:56 +0000 (07:46 -0700)
committerTakashi Iwai <tiwai@suse.de>
Fri, 31 Aug 2012 14:50:28 +0000 (07:50 -0700)
commitc83f5173c5b4a9f0af7262f5e84958a88070c203
tree55dc3c093360f12df2956017800fc802698facc9
parent0f70aea80f22afc50d8213fbeae331303345a01a
ALSA: hda - Yet another fix for D3 stop-clock refcounting

The call of pm_notify callback in snd_hda_codec_free() should be with
the check of the current state whether pm_notify(false) is called or
not, instead of codec->power_on check.

For improving the code readability and fixing this inconsistency,
codec->d3_stop_clk_ok is renamed to codec->pm_down_notified, and this
flag is set only when runtime PM down is called.  The new name reflects
to a more direct purpose of the flag.

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