diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-03 19:22:12 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-23 15:17:48 +0300 |
commit | c4c2533f802d6877803c4d778def43d8a122f27b (patch) | |
tree | ba9b5505cc9da460dd278f7eaf6c55e7211a7f03 /sound/pci/hda/hda_bind.c | |
parent | 05852448690d7d810175f8ceccefba083525aa89 (diff) | |
download | linux-c4c2533f802d6877803c4d778def43d8a122f27b.tar.xz |
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.c | 1 |
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; |