]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: cs35l41: Fix max number of TX channels
authorLucas Tanure <tanureal@opensource.cirrus.com>
Thu, 3 Mar 2022 17:30:41 +0000 (17:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:05:53 +0000 (14:05 +0200)
[ Upstream commit 16639d39bdf577168d3fe34315917a94365c8d19 ]

This device only has 4 TX channels.

Fixes: fe1024d50477b ("ASoC: cs35l41: Combine adjacent register writes")
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220303173059.269657-3-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/cs35l41.c

index 3188a8ba35079859a1443edd0538cf4b0c13a86a..8a2d0f9dd9a61043f21049a4d7e9a998f349a7fa 100644 (file)
@@ -1113,7 +1113,7 @@ static struct snd_soc_dai_driver cs35l41_dai[] = {
                .capture = {
                        .stream_name = "AMP Capture",
                        .channels_min = 1,
-                       .channels_max = 8,
+                       .channels_max = 4,
                        .rates = SNDRV_PCM_RATE_KNOT,
                        .formats = CS35L41_TX_FORMATS,
                },