OSDN Git Service

ASoC: audio-graph-card: tidyup convert_rate/channel method
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 14 Dec 2018 02:32:36 +0000 (11:32 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 14 Dec 2018 11:47:34 +0000 (11:47 +0000)
commit7ced65ffb82fa58c6e314c16770288fe9ce3dfc8
treefd6654f05c80453b38496cd6437f665107ce39c7
parent56eb818191fbe4b93bbe6e884f96061013c9a6ab
ASoC: audio-graph-card: tidyup convert_rate/channel method

Current audio-graph-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 {
convert-channels = <xxx>; // initial
};

codec {
audio-graph-card,convert-channels = <xxx>; // overwrite
ports {
convert_channels = <xxx>; // overwrite
port {
convert_channels = <xxx>; // overwrite
endpoint {
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/audio-graph-card.c