ASoC: stm32: spdifrx: retry synchronization in sync state
authorOlivier Moysan <olivier.moysan@st.com>
Fri, 11 Oct 2019 08:48:16 +0000 (10:48 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 14 Oct 2019 11:57:29 +0000 (12:57 +0100)
commit0c93c291321f2ba8dc4cd3d4df74801caaa297db
tree914091b74330602bc31c23c51809f31848014b30
parentc173dba44c2d2ec2adaa4e607e9729b74236bd57
ASoC: stm32: spdifrx: retry synchronization in sync state

When STM32 SPDIFRX is in sync state, allow multiple
synchro attempts, instead of exiting on first unsuccessful
trial. This is useful when spdif signal is not immediately
available on input. This also allows Pulseaudio to check
iec capture device availability when no signal is present.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/20191011084816.14279-1-olivier.moysan@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_spdifrx.c