ASoC: qcom: q6apm-lpass-dais: pass max number of channels to Audioreach
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 17 Oct 2023 16:14:29 +0000 (18:14 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 25 Oct 2023 16:21:40 +0000 (17:21 +0100)
commite29de7abdaf56f58141b01f74862b320191c9203
tree8df27a75f53fde847591604eb3544a39dbc88864
parent109cb2160128211ca7b17bad79cb0441f1440bc9
ASoC: qcom: q6apm-lpass-dais: pass max number of channels to Audioreach

Using the params_channels() helper when setting hw_params, results in
passing to Audioreach minimum number of channels valid for given
hardware.  This is not valid for any hardware which sets minimum
channels to two and maximum to something bigger, like four channels.

Instead pass the maximum number of supported channels to allow playback
of multi-channel formats.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231017161429.431663-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c