]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6638ea1a0218ff80be020c5fae849af84b4554a7
treefd6654f05c80453b38496cd6437f665107ce39c7
parentaa2ccc43cf16676d160f1d9edbf7830eb0dd98dc
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