6a3bcc5060f33b9e87b50f557c53e4dd118a86c5
[openwrt/staging/jow.git] / target / linux / at91 / patches-5.10 / 188-ASoC-atmel-i2s-Set-symmetric-sample-bits.patch
1 From a6f337fdf68294cfae233724567cbeea0ae5148f Mon Sep 17 00:00:00 2001
2 From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
3 Date: Fri, 18 Jun 2021 18:07:40 +0300
4 Subject: [PATCH 188/247] ASoC: atmel-i2s: Set symmetric sample bits
5
6 The I2S needs to have the same sample bits for both capture and playback
7 streams.
8
9 Fixes: b543e467d1a9 ("ASoC: atmel-i2s: add driver for the new Atmel I2S controller")
10 Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
11 Link: https://lore.kernel.org/r/20210618150741.401739-1-codrin.ciubotariu@microchip.com
12 Signed-off-by: Mark Brown <broonie@kernel.org>
13 ---
14 sound/soc/atmel/atmel-i2s.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 diff --git a/sound/soc/atmel/atmel-i2s.c b/sound/soc/atmel/atmel-i2s.c
18 index e7169c63becd..2a5bc7a54e6c 100644
19 --- a/sound/soc/atmel/atmel-i2s.c
20 +++ b/sound/soc/atmel/atmel-i2s.c
21 @@ -560,6 +560,7 @@ static struct snd_soc_dai_driver atmel_i2s_dai = {
22 },
23 .ops = &atmel_i2s_dai_ops,
24 .symmetric_rates = 1,
25 + .symmetric_samplebits = 1,
26 };
27
28 static const struct snd_soc_component_driver atmel_i2s_component = {
29 --
30 2.32.0
31