]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: qcom: q6apm-lpass-dais: Implement proper channel mapping
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 20 May 2024 14:19:57 +0000 (16:19 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:30:59 +0000 (01:30 +0100)
commit22ad2e3c21281802cd519454544009da7e7a8ea4
tree21627e78e51563c950a41348699f48e9e7949422
parent965cc040bf0698e81b0c0aef359ae650b42b428e
ASoC: qcom: q6apm-lpass-dais: Implement proper channel mapping

The set_channel_map() implementation in q6apm-lpass-dais driver was
copying older pre-Audioreach code from q6afe-dai driver, but not really
using it.  The code sets active channel mask based on passed channel
mapping, but Audioreach code does not use that mask ever.  Audioreach
module configuration does have on the other hand proper channel mapping
field, which should supersed that active channel mask.

Drop the unused active channel mask and implement proper mapping of
channels in q6apm-lpass-dais driver.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240520-asoc-x1e80100-4-channel-mapping-v4-2-f657159b4aad@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/audioreach.h
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c