OSDN Git Service

ASoC: audio-graph-card: tidyup prefix for snd_soc_codec_conf
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 14 Dec 2018 02:32:43 +0000 (11:32 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 14 Dec 2018 11:47:49 +0000 (11:47 +0000)
commit66164a4da30dd295a1b60568c02bee37cfd9895a
tree40a527ab1aabf9eda64f9b53690f90c85e239c49
parent7ced65ffb82fa58c6e314c16770288fe9ce3dfc8
ASoC: audio-graph-card: tidyup prefix for snd_soc_codec_conf

Current audio-graph-card is handling "prefix" by many ways.
But, it is not useful and readable.
We want to do is that allow having it everywere.
This patch supports it.
It will be overwrote if lower node has it.

sound {
prefix = "xxx"; // initial
};

codec {
audio-graph-card,prefix = "xxx"; // overwrite
ports {
prefix = "xxx"; // overwrite
port {
prefix = "xxx"; // overwrite
};
};
};

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c