ASoC: stm32: i2s: update pcm hardware constraints
authorOlivier Moysan <olivier.moysan@st.com>
Mon, 6 May 2019 12:54:11 +0000 (14:54 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 8 May 2019 08:13:38 +0000 (17:13 +0900)
commit4fc19fffaaf87335aafaeb059a561ef91aa6031c
treeff26237dd3a9413702fbbe8882cfcd9c86dca5f0
parent939507f2779836919271ba0311723d1001d3993b
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>
sound/soc/stm/stm32_i2s.c