ASoC: soc-core: add snd_soc_of_parse_node_prefix()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 22 Nov 2018 00:55:09 +0000 (00:55 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 23 Nov 2018 14:01:47 +0000 (14:01 +0000)
commit3b7103562c03cffb1a351f8c235b3bba2acd9e9b
treea702ebea94ed4b4d5e8c90f1cb2aab0c9936ee40
parent6debd01a74b8c15ab3f2a6f7ff4a7dcbada101cb
ASoC: soc-core: add snd_soc_of_parse_node_prefix()

Current ASoC has snd_soc_of_parse_audio_prefix() to get codec_conf
settings from DT which is used to avoid DAI naming conflict when
CPU/Codec matching.

Currently, it is parsing from "top node",
but, we want to parse from "each sub node" if sound card had multi
cpus/codecs.

This patch adds new snd_soc_of_parse_node_prefix() to allow parsing
settings from selected node.
It is keeping existing snd_soc_of_parse_audio_prefix() by using macro.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c