ASoC: soc-core: add snd_soc_is_matching_component()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 11 Sep 2018 06:51:45 +0000 (06:51 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 17 Sep 2018 17:46:08 +0000 (10:46 -0700)
commitbe6ac0a9ced99403c435b2b2fe9ac4bd55749823
tree92f3397ecee44c56332fb55a1173ebdc044718b3
parent4a9ed39477bd1635cf23b49e10f9e364329bbe46
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>
sound/soc/soc-core.c