ASoC: stm32: i2s: improve channel capabilities handling
authorOlivier Moysan <olivier.moysan@st.com>
Mon, 11 Mar 2019 15:26:29 +0000 (16:26 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 11 Mar 2019 16:33:17 +0000 (16:33 +0000)
commitc2dc8b2c114c22d7a04cf26a7c7d04faaa757143
tree806a33588c4ac1615a54869bd602a84c248124f4
parent52e7306ca2db565edc1503a74477f3547bc9e408
ASoC: stm32: i2s: improve channel capabilities handling

Use alsa snd_pcm_hw_constraint_single service to manage
channels restriction. This provides better status on driver
limitations, to the application.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_i2s.c