]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commita5143ca5935baae3862c807c5521ea917879d54f
tree1f47527b0b522c69d0b9c569cfa3af03e54216ee
parent355a6c00803299d2baee3e9254fe2cab565248fa
ASoC: stm32: spdifrx: fix input pin state management

BugLink: https://bugs.launchpad.net/bugs/1862227
commit 3b7658679d88b5628939f9bdc8e613f79cd821f9 upstream.

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: f68c2a682d44 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/soc/stm/stm32_spdifrx.c