Skip to content

Commit 6101bf7

Browse files
Olivier Moysanbroonie
authored andcommitted
ASoC: stm32: dfsdm: change rate limits
The DFSDM can support a larger rate range than currently supported in driver. Increase rate upper limit to 48kHz and allow all rates in the range 8kHz to 48kHz. Signed-off-by: Olivier Moysan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6db282c commit 6101bf7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sound/soc/stm/stm32_adfsdm.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ static const struct snd_pcm_hardware stm32_adfsdm_pcm_hw = {
4747
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_PAUSE,
4848
.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
4949

50-
.rate_min = 8000,
51-
.rate_max = 32000,
52-
5350
.channels_min = 1,
5451
.channels_max = 1,
5552

@@ -143,8 +140,9 @@ static const struct snd_soc_dai_driver stm32_adfsdm_dai = {
143140
.channels_max = 1,
144141
.formats = SNDRV_PCM_FMTBIT_S16_LE |
145142
SNDRV_PCM_FMTBIT_S32_LE,
146-
.rates = (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |
147-
SNDRV_PCM_RATE_32000),
143+
.rates = SNDRV_PCM_RATE_CONTINUOUS,
144+
.rate_min = 8000,
145+
.rate_max = 48000,
148146
},
149147
.ops = &stm32_adfsdm_dai_ops,
150148
};

0 commit comments

Comments
 (0)