]> 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)
commit0bc028c69d8c76cd89fc15cc2ba0a3dfdef5394b
treefe7fc6e546906ffe2a67f62276f9b1beba848813
parent869b57236f6582528fb0dba7908cdb410b6b03ea
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