From: Takashi Iwai Date: Fri, 27 Feb 2015 19:44:54 +0000 (+0100) Subject: ALSA: hda - Build PCMs and controls at codec driver probe X-Git-Tag: omap-for-v4.2/o2_dc~120^2~6^2~43^2~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcd96557bd0ab1129fcdde073d5700aed8fcb942;p=pandora-kernel.git 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 --- Reading git-diff-tree failed