ASoC: audio-graph-card: add asoc_graph_card_get_conversion()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Dec 2018 01:45:48 +0000 (10:45 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:34:15 +0000 (16:34 +0000)
commit40dfae169ad047535d566a4791daae3b08f71c0c
treecdb5b187335525cbee95e80afa87b57b8bdf64b7
parenta0c426fe143328760c9fd565cd203a37a7b4fde8
ASoC: audio-graph-card: add asoc_graph_card_get_conversion()

audio-graph-card is now supporting normal sound and DPCM sound.
For DPCM sound, original sound card (= audio-graph-scu) had been
supported 1 CPU : 1 Codec connection which uses hw_params_fixup()
for convert-rate/channel.
But, merged audio-graph-card is completely forgeting about it.

To re-support 1 CPU : 1 Codec DPCM for hw_params_fixup(),
it need to judge whether it is DPCM by checking convert-rate/channel.
For this purpose, this patch adds asoc_graph_card_get_conversion()
as preparation

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