ASoC: simple-card: add asoc_simple_card_get_conversion()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Dec 2018 01:46:42 +0000 (10:46 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:34:27 +0000 (16:34 +0000)
commit7e5e1f8bbaa82e6877d8bc121cb1b44cb1ce7ddf
tree028482cbab29bd35344f170bb8f7fdaa73d2fb28
parent97fe6ca4146583d8dccdde51c143c52b385c2682
ASoC: simple-card: add asoc_simple_card_get_conversion()

simple-card is now supporting normal sound and DPCM sound.
For DPCM sound, original sound card (= simple-scu-card) had been
supported 1 CPU : 1 Codec connection which uses hw_params_fixup()
for convert-rate/channel.
But, merged simple-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_simple_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/simple-card.c