]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: tidyup prefix for snd_soc_codec_conf
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 14 Dec 2018 02:35:24 +0000 (11:35 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 14 Dec 2018 11:48:57 +0000 (11:48 +0000)
commit565132534a0eea104582d65b01101b35cd694258
treee922dd2ce9c3cdb590f552677637365383abc280
parentcd1c28c86ede82b9fed33e758d6a45492d906f47
ASoC: simple-card: tidyup prefix for snd_soc_codec_conf

Current simple-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 {
simple-audio-card,prefix = "xxx"; // initial

simple-audio-card,dai-link {
prefix = "xxx"; // overwrite
cpu {
...
};
codec {
prefix = "xxx"; // overwrite
};
};
};

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