]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: stm32: spdifrx: fix input pin state management
authorOlivier Moysan <olivier.moysan@st.com>
Wed, 4 Dec 2019 15:43:33 +0000 (16:43 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 24 Dec 2019 23:56:17 +0000 (23:56 +0000)
commitb8b34bbe7960d6b47bc3f1043125ad1cbb7464db
tree635bad878fc7316a9d7dce85e806127f4f39c93f
parentcdc0a7dccdfe98681e33eb2b9f1aa9a59d455a1f
ASoC: stm32: spdifrx: fix input pin state management

Changing input state in iec capture control is not safe,
as the pin state may be changed concurrently by ASoC
framework.
Remove pin state handling in iec capture control.

Note: This introduces a restriction on capture control,
when pin sleep state is defined in device tree. In this case
channel status can be captured only when an audio stream
capture is active.

Fixes: 3735103a90e4 ("ASoC: stm32: spdifrx: add power management")
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/20191204154333.7152-4-olivier.moysan@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_spdifrx.c