From: Krzysztof Kozlowski Date: Tue, 24 Jan 2023 12:30:49 +0000 (+0100) Subject: ASoC: codecs: wsa883x: correct playback min/max rates X-Git-Tag: baikal/aarch64/sdk6.1~84 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=35ca836cfdfd305d101fa8bdcff9bca122b020ff;p=kernel.git ASoC: codecs: wsa883x: correct playback min/max rates commit 100c94ffde489ee11e23400f2a07b236144b048f upstream. Correct reversed values used in min/max rates, leading to incorrect playback constraints. Cc: Fixes: 71674ea18625 ("ASoC: codecs: add wsa883x amplifier support") Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20230124123049.285395-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c index 0ddb6362fcc52..2533d0973529f 100644 --- a/sound/soc/codecs/wsa883x.c +++ b/sound/soc/codecs/wsa883x.c @@ -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, },