ALSA: hda - Build PCMs and controls at codec driver probe
authorTakashi Iwai <tiwai@suse.de>
Fri, 27 Feb 2015 19:44:54 +0000 (20:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Mar 2015 10:28:36 +0000 (11:28 +0100)
This makes the code flow easier -- instead of the controller driver
calling snd_hda_build_pcms() and snd_hda_build_controls() explicitly,
the codec driver itself builds PCMs and controls at probe time.  Then
the controller driver only needs to call snd_card_register().

Also, this allows us the full bind/unbind control, too.  Even when a
codec driver is bound later, it automatically registers the new PCM
and controls by itself.

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_intel.c
sound/pci/hda/hda_tegra.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge