diff options
author | Olivier Moysan <olivier.moysan@st.com> | 2019-05-06 14:44:04 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-06 16:46:23 +0200 |
commit | 863137f0bc5eb2a3a65d1d29778ac65642171b17 (patch) | |
tree | 0a41ba437cbe2b7f3ef1ecfa54c5728a5a6136c7 /sound/soc | |
parent | ASoC: max98090: Fix restore of DAPM Muxes (diff) | |
download | linux-863137f0bc5eb2a3a65d1d29778ac65642171b17.tar.xz linux-863137f0bc5eb2a3a65d1d29778ac65642171b17.zip |
ASoC: stm32: spdifrx: 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/soc')
-rw-r--r-- | sound/soc/stm/stm32_spdifrx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index b4c3d983e195..aa83b50efabb 100644 --- a/sound/soc/stm/stm32_spdifrx.c +++ b/sound/soc/stm/stm32_spdifrx.c @@ -845,7 +845,8 @@ static struct snd_soc_dai_driver stm32_spdifrx_dai[] = { static const struct snd_pcm_hardware stm32_spdifrx_pcm_hw = { .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP, .buffer_bytes_max = 8 * PAGE_SIZE, - .period_bytes_max = 2048, /* MDMA constraint */ + .period_bytes_min = 1024, + .period_bytes_max = 4 * PAGE_SIZE, .periods_min = 2, .periods_max = 8, }; |