ALSA: hda - Implement unbind more safely
authorTakashi Iwai <tiwai@suse.de>
Fri, 27 Feb 2015 17:17:28 +0000 (18:17 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Mar 2015 10:28:12 +0000 (11:28 +0100)
Now we have all pieces ready, and put them into places:
- add the hda_pcm refcount to azx_pcm_open() and azx_pcm_close(),
- call the most of cleanup code in hda_codec_reset() from the codec
  driver remove,
- call the same code also from the hda_codec object free.

Then the codec driver can be unbound more safely now.

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

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge