ASoC: simple-scu-card: tidyup "convert-rate/channels" parsing
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 11 Dec 2018 03:25:18 +0000 (03:25 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 11 Dec 2018 12:18:42 +0000 (12:18 +0000)
commit09ee833679761f4995daaa6fd6200c77b8fcdaef
tree82a530bfde0ed0dcdd4e24ae09cb64c481c3b5db
parentb8d8f9a58fd971ec215fb8bfec5a4fb6e539a3ab
ASoC: simple-scu-card: tidyup "convert-rate/channels" parsing

simple-scu-card.c is supporting "convert-rate/channels" which is
used for DPCM.
But, sound card might have multi codecs, and each codec might need
each convert-rate/channels.

This patch supports each codec's convert-rate/channles support.
top node convert-rate/channels will overwrite settings if exist.

It can't support each codec's convert-rate/channels if sound card had
multi codecs without this patch.

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