ASoC: soc-pcm: fix hw param limits calculation for multi-DAI
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Tue, 16 Feb 2021 17:22:51 +0000 (19:22 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 17 Feb 2021 18:04:40 +0000 (18:04 +0000)
commit8a353d7bafddb447fae136ca68899a6ba6187be6
treee505f6b0e6810e172acf3bd45b26f362803d77f8
parent140f553d1298e0ddbe21983efe5789fe8b484273
ASoC: soc-pcm: fix hw param limits calculation for multi-DAI

In case DPCM runtime has multiple CPU DAIs, dpcm_init_runtime_hw() is
called multiple times, once for each CPU DAI. This will lead to
ignoring hw limits of all but the last DAI.

Fix this by moving soc_pcm_hw_init() up by one level to
dpcm_init_runtime_hw().

Fixes: 140f553d1298 ("ASoC: soc-pcm: fix hwparams min/max init for dpcm")
Suggested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210216172251.3023723-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c