]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ASoC: core: Bind DAIs to CODECs at registration time
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 9 Apr 2012 16:29:19 +0000 (17:29 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 16 Apr 2012 18:36:29 +0000 (19:36 +0100)
commit054880febeb890b24d705240384856ea6b3ccf7b
tree2b98e7204e1f40d55523da642d5eb4d2d1fee8d7
parentf04209a7b0a9942aa78f8b27e63a8a5cc097adf8
ASoC: core: Bind DAIs to CODECs at registration time

We should always have a CODEC already there when registering a CODEC DAI
and for CODEC<->CODEC links a dai_link will have two CODECs so it's much
simpler to do things at registration time.

This results in a slight change in the error handling for failed CODEC
DAI registrations but practically speaking these are never supposed to
fail so there shouldn't be much issue. The change is that we don't fail
the overall CODEC registration if the DAI registration fails; this seems
more robust anyway as we may not need to use a given DAI in a particular
system.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c