]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix unbalanced runtime PM notification at resume
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Nov 2013 11:15:07 +0000 (12:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Nov 2013 15:39:14 +0000 (16:39 +0100)
commita60e79a1ab593ec23f4964a4a30fbc8e268d7618
treecdc1aa54ea11813b005be3be65a4a103b977558b
parentd2e74c3b83a4efb1f9fb8d9bfd4a7629ef6185c8
ALSA: hda - Fix unbalanced runtime PM notification at resume

When a codec is resumed, it keeps the power on while the resuming
phase via hda_keep_power_on(), then turns down via
snd_hda_power_down().  At that point, snd_hda_power_down() notifies
the power down to the controller, and this may confuse the refcount if
the codec was already powered up before the resume.

In the end result, the controller goes to runtime suspend even before
the codec is kicked off to the power save, and the communication
stalls happens.

The fix is to add the power-up notification together with
hda_keep_power_on(), and clears the flag appropriately.

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