commit | be6ac0a9ced99403c435b2b2fe9ac4bd55749823 | [log] [tgz] |
---|---|---|
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | Tue Sep 11 06:51:45 2018 +0000 |
committer | Mark Brown <broonie@kernel.org> | Mon Sep 17 10:46:08 2018 -0700 |
tree | 92f3397ecee44c56332fb55a1173ebdc044718b3 | |
parent | 4a9ed39477bd1635cf23b49e10f9e364329bbe46 [diff] |
ASoC: soc-core: add snd_soc_is_matching_component() To find (CPU/)Codec/Platform, we need to find component first (= on CPU/Codec/Platform), and find DAI from it (= CPU/Codec). These are similar operation but difficult to be simple, and has many duplicate code to finding component. This patch adds new snd_soc_is_matching_component(), and reduce duplicate codes. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>