]> 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)
commit8f0c1b93087aa59260ca7415657a6773b9e084f2
treeee0e27aa2ff400c334f58a1df3ab0b0f8e6b154e
parentae006307032b27fc1bc9bfe8ceaf056b29190e92
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: f31559fee24e ("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