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)
commitbcd96557bd0ab1129fcdde073d5700aed8fcb942
tree8f246b3fc0b986ba9d105f632aa7cef485123825
parent9a6246ff78ac33af78f82704cde6fec361597eea
ALSA: hda - Build PCMs and controls at codec driver probe

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