diff options
author | Olivier Moysan <olivier.moysan@st.com> | 2019-05-06 08:54:11 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-08 04:13:38 -0400 |
commit | 4fc19fffaaf87335aafaeb059a561ef91aa6031c (patch) | |
tree | ff26237dd3a9413702fbbe8882cfcd9c86dca5f0 /sound | |
parent | 939507f2779836919271ba0311723d1001d3993b (diff) |
ASoC: stm32: i2s: update pcm hardware constraints
- Set period minimum size. Ensure at least 5ms period
up to 48kHz/16 bits to prevent underrun/overrun.
- Remove MDMA constraints on period maximum size and
set period maximum to half the buffer maximum size.
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/stm/stm32_i2s.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 97d5e9901a0e..8ee697ff1f86 100644 --- a/sound/soc/stm/stm32_i2s.c +++ b/sound/soc/stm/stm32_i2s.c | |||
@@ -731,7 +731,8 @@ static const struct snd_soc_dai_ops stm32_i2s_pcm_dai_ops = { | |||
731 | static const struct snd_pcm_hardware stm32_i2s_pcm_hw = { | 731 | static const struct snd_pcm_hardware stm32_i2s_pcm_hw = { |
732 | .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP, | 732 | .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP, |
733 | .buffer_bytes_max = 8 * PAGE_SIZE, | 733 | .buffer_bytes_max = 8 * PAGE_SIZE, |
734 | .period_bytes_max = 2048, | 734 | .period_bytes_min = 1024, |
735 | .period_bytes_max = 4 * PAGE_SIZE, | ||
735 | .periods_min = 2, | 736 | .periods_min = 2, |
736 | .periods_max = 8, | 737 | .periods_max = 8, |
737 | }; | 738 | }; |