]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix possible runtime PM refcount unbalance
authorTakashi Iwai <tiwai@suse.de>
Tue, 3 Mar 2015 16:22:12 +0000 (17:22 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Mar 2015 12:17:48 +0000 (13:17 +0100)
commitfad7182f5c62f4113681e8e4b0ef32b07a133333
treeba9b5505cc9da460dd278f7eaf6c55e7211a7f03
parent77c6bf7316c4547e1b5605364632341b83bcbad9
ALSA: hda - Fix possible runtime PM refcount unbalance

When the driver is unloaded before the codec is bound, it still keeps
the runtime PM refcount up, and results in the unbalance.  This patch
covers these cases by introducing a flag indicating the runtime PM
initialization and handling the codec registration procedure more
properly.  It also fixes the missing input beep device as a gratis,
too.

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