OSDN Git Service

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)
commite6bbe666673ab044a3d39ddb74e4d9a401cf1d6f
treee1c681dfe1d213c2d8833dcf7290832d654faebf
parentd7f8761b6614d2d3695dd57d27d0b2f952777648
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