ASoC: soc-pcm: use snd_pcm_hardware at dpcm_runtime_merge_xxx()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 22 Jan 2021 01:13:48 +0000 (10:13 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 3 Feb 2021 17:41:42 +0000 (17:41 +0000)
commit4b260f425497b105acc2baa9d97ef781ef0c667d
tree79b6585665ab387d8d4fe44901d26d02e1108811
parent2b39123b134e10a3817156bd9b157c9b8f950d6f
ASoC: soc-pcm: use snd_pcm_hardware at dpcm_runtime_merge_xxx()

soc-pcm has dpcm_runtime_merge_xxx() functions,
but uses parameters are very verbose.

dpcm_runtime_merge_format(..., &runtime->hw.formats);
dpcm_runtime_merge_chan(..., &runtime->hw.channels_min,
&runtime->hw.channels_max);
dpcm_runtime_merge_rate(..., &runtime->hw.rates,
&runtime->hw.rate_min,
&runtime->hw.rate_max);

We want to replace it into

dpcm_runtime_merge_format(..., runtime);
dpcm_runtime_merge_chan(..., runtime);
dpcm_runtime_merge_rate(..., runtime);

This patch do it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/874kj9aigd.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c