]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: stm32: spdifrx: manage rebind issue
authorOlivier Moysan <olivier.moysan@st.com>
Wed, 18 Mar 2020 14:41:24 +0000 (15:41 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 18 Mar 2020 19:55:25 +0000 (19:55 +0000)
commit0b08a674581f0dce233f17f23095d281693ed031
treeee3f039cc352725383faaa7cca0d6bb930a42b02
parent4cce390e08290b11a88169727c326ccb71516611
ASoC: stm32: spdifrx: manage rebind issue

The commit 58fac06df9c8 ("ASoC: core: add support to card rebind")
allows to rebind the sound card after a rebind of one of its component.
With this commit, the sound card is actually rebound,
but may be no more functional.

Corrections:
- Call snd_dmaengine_pcm_register() before snd_soc_register_component().
- Call snd_dmaengine_pcm_unregister() and snd_soc_unregister_component()
explicitly from SPDFIRX driver.

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