ASoC: atmel-i2s: Set symmetric sample bits
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Fri, 18 Jun 2021 15:07:40 +0000 (18:07 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jun 2021 12:00:47 +0000 (13:00 +0100)
The I2S needs to have the same sample bits for both capture and playback
streams.

Fixes: b543e467d1a9 ("ASoC: atmel-i2s: add driver for the new Atmel I2S controller")
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20210618150741.401739-1-codrin.ciubotariu@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/atmel-i2s.c

index 584656c..48c1585 100644 (file)
@@ -542,6 +542,7 @@ static struct snd_soc_dai_driver atmel_i2s_dai = {
        },
        .ops = &atmel_i2s_dai_ops,
        .symmetric_rate = 1,
+       .symmetric_sample_bits = 1,
 };
 
 static const struct snd_soc_component_driver atmel_i2s_component = {