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)
commitcaff4ce8cc582a97b17d10b7c7f5fe8500323135
treeca8b41d633c22c7d8899030d1408158abd4f259e
parent794df9448edb55978e50372f083aeedade1b2844
ASoC: stm32: i2s: manage rebind issue

The commit e894efef9ac7 ("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