]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Pass CODEC to snd_soc_register_dais()
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 9 Mar 2014 16:41:46 +0000 (17:41 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 10 Mar 2014 12:17:54 +0000 (12:17 +0000)
commitd3b3fbedb9a987c92345c43e7711526db0fff2e8
treefe7fc6e546906ffe2a67f62276f9b1beba848813
parentc61ee83175c9fb0293d3a5b742d39484e0216d32
ASoC: Pass CODEC to snd_soc_register_dais()

snd_soc_register_dais() looks up the CODEC that is registering the DAIs by
looping over all registered CODECs. This patch updates the code to
simply pass the CODEC that registers the DAIs to snd_soc_register_dais() thus
avoiding the lookup.

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