]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: stm32: i2s: manage rebind issue
authorOlivier Moysan <olivier.moysan@st.com>
Wed, 18 Mar 2020 14:41:25 +0000 (15:41 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 18 Mar 2020 19:55:26 +0000 (19:55 +0000)
commit7fab9af66f0623c52e61a52b915daacb36bfc487
treeca8b41d633c22c7d8899030d1408158abd4f259e
parent0b08a674581f0dce233f17f23095d281693ed031
ASoC: stm32: i2s: 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 I2S driver.

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