]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: codecs: wsa883x: correct playback min/max rates
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 24 Jan 2023 12:30:49 +0000 (13:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:16 +0000 (11:28 +0100)
commit 100c94ffde489ee11e23400f2a07b236144b048f upstream.

Correct reversed values used in min/max rates, leading to incorrect
playback constraints.

Cc: <stable@vger.kernel.org>
Fixes: 71674ea18625 ("ASoC: codecs: add wsa883x amplifier support")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230124123049.285395-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/wsa883x.c

index 0ddb6362fcc52ca16fe10be4c6112e5f924318e0..2533d0973529fcba6baa191175adf51e188265a7 100644 (file)
@@ -1359,8 +1359,8 @@ static struct snd_soc_dai_driver wsa883x_dais[] = {
                        .stream_name = "SPKR Playback",
                        .rates = WSA883X_RATES | WSA883X_FRAC_RATES,
                        .formats = WSA883X_FORMATS,
-                       .rate_max = 8000,
-                       .rate_min = 352800,
+                       .rate_min = 8000,
+                       .rate_max = 352800,
                        .channels_min = 1,
                        .channels_max = 1,
                },