]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix unbalanced runtime PM refcount after S3/S4
authorTakashi Iwai <tiwai@suse.de>
Wed, 23 Oct 2013 23:20:24 +0000 (01:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Oct 2013 07:21:45 +0000 (09:21 +0200)
commitbb1ea396ba1f4c5314935f4ebd47d73db7e8b2b9
treee1c681dfe1d213c2d8833dcf7290832d654faebf
parent267db8afb4a8474738052e29665d344c126d1f43
ALSA: hda - Fix unbalanced runtime PM refcount after S3/S4

When a machine goes to S3/S4 after power-save is enabled, the runtime
PM refcount might be incorrectly decreased because the power-down
triggered soon after resume assumes that the controller was already
powered up, and issues the pm_notify down.

This patch fixes the incorrect pm_notify call simply by checking the
current value properly.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c