]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb3b1c608fe30832464aef517b748f69279dd224
treeee0e27aa2ff400c334f58a1df3ab0b0f8e6b154e
parent3b319ed75d866f84bc62552bc9f0252031fdaa0c
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: 573439ac8724 ("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