]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb36f4be0520e3a1acdef9ce378fc353d8c8b08df
tree068fb116c1ddb6d5f7fb83cf0c116cd87af43991
parent60cfb5d88a27f88882067edc3550547d13496526
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