mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 03:10:52 +07:00
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 <olivier.moysan@st.com> Link: https://lore.kernel.org/r/20201007153459.22155-2-olivier.moysan@st.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6db282c8a9
commit
6101bf7119
@ -47,9 +47,6 @@ static const struct snd_pcm_hardware stm32_adfsdm_pcm_hw = {
|
|||||||
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_PAUSE,
|
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_PAUSE,
|
||||||
.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
|
.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
|
||||||
|
|
||||||
.rate_min = 8000,
|
|
||||||
.rate_max = 32000,
|
|
||||||
|
|
||||||
.channels_min = 1,
|
.channels_min = 1,
|
||||||
.channels_max = 1,
|
.channels_max = 1,
|
||||||
|
|
||||||
@ -143,8 +140,9 @@ static const struct snd_soc_dai_driver stm32_adfsdm_dai = {
|
|||||||
.channels_max = 1,
|
.channels_max = 1,
|
||||||
.formats = SNDRV_PCM_FMTBIT_S16_LE |
|
.formats = SNDRV_PCM_FMTBIT_S16_LE |
|
||||||
SNDRV_PCM_FMTBIT_S32_LE,
|
SNDRV_PCM_FMTBIT_S32_LE,
|
||||||
.rates = (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
||||||
SNDRV_PCM_RATE_32000),
|
.rate_min = 8000,
|
||||||
|
.rate_max = 48000,
|
||||||
},
|
},
|
||||||
.ops = &stm32_adfsdm_dai_ops,
|
.ops = &stm32_adfsdm_dai_ops,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user