ASoC: simple-card: tidyup convert_rate/channel method
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 14 Dec 2018 02:35:20 +0000 (11:35 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 14 Dec 2018 11:48:42 +0000 (11:48 +0000)
commitdd82410f7e939f00591c415d62915a89ac2fb8f0
tree068fb116c1ddb6d5f7fb83cf0c116cd87af43991
parent79e834914d1fa2d078c586094ad347cc05aa428c
ASoC: simple-card: tidyup convert_rate/channel method

Current simple-card is handling "convert_rate/channel"
by many ways. But, it is not useful and readable.
We want to do is that allow having it everywere.
This patch support it.
It will be overwrote if lower node has it.

sound {
simple-audio-card,convert_channels = <xxx>; // initial

simple-audio-card,dai-link {
convert_channels = <xxx>; // overwrite
cpu {
convert_channels = <xxx>; // overwrite
};
codec {
convert_channels = <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