diff options
author | Samuel Holland <samuel@sholland.org> | 2020-10-14 01:19:32 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-26 14:56:57 +0000 |
commit | e557148ac220b43bc6cbc06333f56b1c61e90825 (patch) | |
tree | 645a9e0bcd8e1cdcdf1819289ebf7e0855a62983 /sound/soc/sunxi | |
parent | afb1a6006299a8b6b5ad04363fd74aa66a6ac79b (diff) | |
download | linux-e557148ac220b43bc6cbc06333f56b1c61e90825.tar.bz2 |
ASoC: sun8i-codec: Enforce symmetric DAI parameters
The AIFs have a single register controlling DAI parameters in both
directions, including BCLK/LRCK divisor and word size. The DAIs produce
only noise or silence if any of these parameters is wrong. Therefore, we
need to enforce symmetry for these parameters, so starting a new
substream will not break an existing substream.
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20201014061941.4306-9-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sunxi')
-rw-r--r-- | sound/soc/sunxi/sun8i-codec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c index 49e763d1891b..21104e6e8892 100644 --- a/sound/soc/sunxi/sun8i-codec.c +++ b/sound/soc/sunxi/sun8i-codec.c @@ -425,6 +425,9 @@ static struct snd_soc_dai_driver sun8i_codec_dais[] = { .rates = SNDRV_PCM_RATE_8000_192000, .formats = SNDRV_PCM_FMTBIT_S16_LE, }, + .symmetric_rates = true, + .symmetric_channels = true, + .symmetric_samplebits = true, }, }; |