ASoC: codecs: lpass-va-macro: mute/unmute all active decimators
authorJonathan Marek <jonathan@marek.ca>
Thu, 4 Mar 2021 21:56:46 +0000 (16:56 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 12:51:04 +0000 (12:51 +0000)
commit5346f0e80b7160c91fb599d4545fd12560c286ed
tree8b47971ad88936117a9e24328f10016ab72198b4
parent7de14d581dbed57c2b3c6afffa2c3fdc6955a3cd
ASoC: codecs: lpass-va-macro: mute/unmute all active decimators

An interface can have multiple decimators enabled, so loop over all active
decimators. Otherwise only one channel will be unmuted, and other channels
will be zero. This fixes recording from dual DMIC as a single two channel
stream.

Also remove the now unused "active_decimator" field.

Fixes: 908e6b1df26e ("ASoC: codecs: lpass-va-macro: Add support to VA Macro")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210304215646.17956-1-jonathan@marek.ca
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-va-macro.c