summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_bind.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-03 17:22:12 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-23 13:17:48 +0100
commitc4c2533f802d6877803c4d778def43d8a122f27b (patch)
treeba9b5505cc9da460dd278f7eaf6c55e7211a7f03 /sound/pci/hda/hda_bind.c
parent05852448690d7d810175f8ceccefba083525aa89 (diff)
downloadtalos-op-linux-c4c2533f802d6877803c4d778def43d8a122f27b.tar.gz
talos-op-linux-c4c2533f802d6877803c4d778def43d8a122f27b.zip
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>
Diffstat (limited to 'sound/pci/hda/hda_bind.c')
-rw-r--r--sound/pci/hda/hda_bind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_bind.c b/sound/pci/hda/hda_bind.c
index 130f672e6f37..7b269c3237e3 100644
--- a/sound/pci/hda/hda_bind.c
+++ b/sound/pci/hda/hda_bind.c
@@ -95,6 +95,7 @@ static int hda_codec_driver_probe(struct device *dev)
err = snd_card_register(codec->card);
if (err < 0)
goto error_module;
+ snd_hda_codec_register(codec);
}
return 0;
OpenPOWER on IntegriCloud