]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Bind aux devs early
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 1 Jul 2014 20:13:47 +0000 (22:13 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 2 Jul 2014 20:24:10 +0000 (21:24 +0100)
commiteb690edcb4a1936475246f14a7fda22f22b85803
treef0c5c6d6f77613b8c8c2948ecd44d8a66cbdc357
parentd0de7465ee7cf273f88aea99b32e724c707963df
ASoC: core: Bind aux devs early

Currently in snd_soc_instantiate_card() we only check if the aux dev exists, but
do not yet assign it to its rtd. This means that we need to lookup the aux dev
again in soc_probe_aux_dev(). This patch changes the behavior to assign the aux
dev to the rtd in soc_check_aux_dev() (and renames it to soc_bind_aux_dev()).
This simplifies the implementation a bit and also removes the need for
soc_post_component_init() to know about the specific CODEC that was assigned to
the rtd. The later is necessary for componentization as the code should work for
all types of components not just CODECs. This new behavior is also more in sync
with how soc_bind_dai_link()/soc_probe_link_dais() works.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c