OSDN Git Service

ASoC: soc-core: support snd_soc_dai_link_component for codec_conf
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 13 Dec 2019 00:54:36 +0000 (09:54 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 16 Dec 2019 12:01:32 +0000 (12:01 +0000)
commitc13493a2460b7ba8f6e75fe6e1a3b732cc294f8f
tree0b965d4ebeabff9c05cd7c6620299faadb37eadd
parent57e960f0020ec46db277426762ba5ffe77e03e3c
ASoC: soc-core: support snd_soc_dai_link_component for codec_conf

To find codec_conf component, it is using dev_name, of_node.
But, we already has this kind of finding component method by
snd_soc_dai_link_component, and snd_soc_is_matching_component().
We shouldn't have duplicate implementation to do same things.
This patch adds snd_soc_dai_link_component support to find
codec_conf component.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87lfrh59kj.wl-kuninori.morimoto.gx@renesas.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c