summaryrefslogtreecommitdiffstats
path: root/sound/soc/meson/axg-toddr.c
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2024-02-23 18:51:11 +0100
committerMark Brown <broonie@kernel.org>2024-02-26 14:03:17 +0000
commit8b410b3c46128f1eee78f1182731b84d9d2e79ef (patch)
treeca692df98dc7a41359fca666fd4acf496216e7ea /sound/soc/meson/axg-toddr.c
parenta2417b6c0f9c3cc914c88face9abd6e9b9d76c00 (diff)
downloadlinux-stable-8b410b3c46128f1eee78f1182731b84d9d2e79ef.tar.gz
linux-stable-8b410b3c46128f1eee78f1182731b84d9d2e79ef.tar.bz2
linux-stable-8b410b3c46128f1eee78f1182731b84d9d2e79ef.zip
ASoC: meson: axg-fifo: take continuous rates
The rate of the stream does not matter for the fifos of the axg family. Fifos will just push or pull data to/from the DDR according to consumption or production of the downstream element, which is the DPCM backend. Drop the rate list and allow continuous rates. The lower and upper rate are set according what is known to work with the different backends This allows the PDM input backend to also use continuous rates. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://msgid.link/r/20240223175116.2005407-6-jbrunet@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/axg-toddr.c')
-rw-r--r--sound/soc/meson/axg-toddr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/soc/meson/axg-toddr.c b/sound/soc/meson/axg-toddr.c
index 1a0be177b8fe..32ee45cce7f8 100644
--- a/sound/soc/meson/axg-toddr.c
+++ b/sound/soc/meson/axg-toddr.c
@@ -131,7 +131,9 @@ static struct snd_soc_dai_driver axg_toddr_dai_drv = {
.stream_name = "Capture",
.channels_min = 1,
.channels_max = AXG_FIFO_CH_MAX,
- .rates = AXG_FIFO_RATES,
+ .rates = SNDRV_PCM_RATE_CONTINUOUS,
+ .rate_min = 5515,
+ .rate_max = 384000,
.formats = AXG_FIFO_FORMATS,
},
.ops = &axg_toddr_ops,
@@ -226,7 +228,9 @@ static struct snd_soc_dai_driver g12a_toddr_dai_drv = {
.stream_name = "Capture",
.channels_min = 1,
.channels_max = AXG_FIFO_CH_MAX,
- .rates = AXG_FIFO_RATES,
+ .rates = SNDRV_PCM_RATE_CONTINUOUS,
+ .rate_min = 5515,
+ .rate_max = 384000,
.formats = AXG_FIFO_FORMATS,
},
.ops = &g12a_toddr_ops,