]> git.baikalelectronics.ru Git - kernel.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)
commit69b52a2d23f09db8cb037b300c3fb9d5f7897c9b
tree2b98e7204e1f40d55523da642d5eb4d2d1fee8d7
parent615cb4a75ce7a0b02bb0a18829543fc062f1837d
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