ASoC: codecs: lpass-wsa-macro: fix RX MIX input controls
authorJonathan Marek <jonathan@marek.ca>
Fri, 5 Mar 2021 00:50:48 +0000 (19:50 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 12:51:05 +0000 (12:51 +0000)
commite4b8b7c916038c1ffcba2c4ce92d5523c4cc2f46
treeee0e27aa2ff400c334f58a1df3ab0b0f8e6b154e
parent5346f0e80b7160c91fb599d4545fd12560c286ed
ASoC: codecs: lpass-wsa-macro: fix RX MIX input controls

Attempting to use the RX MIX path at 48kHz plays at 96kHz, because these
controls are incorrectly toggling the first bit of the register, which
is part of the FS_RATE field.

Fix the problem by using the same method used by the "WSA RX_MIX EC0_MUX"
control, which is to use SND_SOC_NOPM as the register and use an enum in
the shift field instead.

Fixes: 2c4066e5d428 ("ASoC: codecs: lpass-wsa-macro: add dapm widgets and route")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210305005049.24726-1-jonathan@marek.ca
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-wsa-macro.c